function shortcut_sets

Returns an array of all shortcut sets, keyed by the set name.

Return value

An array of shortcut sets. Note that only the basic shortcut set properties (name and title) are returned by this function, not the list of menu links that belong to the set.

5 calls to shortcut_sets()
ShortcutSetsTestCase::testShortcutSetAdd in drupal/modules/shortcut/shortcut.test
Tests creating a shortcut set.
ShortcutSetsTestCase::testShortcutSetDelete in drupal/modules/shortcut/shortcut.test
Tests deleting a shortcut set.
shortcut_set_admin in drupal/modules/shortcut/shortcut.admin.inc
Menu page callback: builds the page for administering shortcut sets.
shortcut_set_switch in drupal/modules/shortcut/shortcut.admin.inc
Form callback: builds the form for switching shortcut sets.
shortcut_uninstall in drupal/modules/shortcut/shortcut.install
Implements hook_uninstall().

File

drupal/modules/shortcut/shortcut.module, line 583
Allows users to manage customizable lists of shortcut links.

Code

function shortcut_sets() {
  return db_select('shortcut_set', 'ss')
    ->fields('ss')
    ->execute()
    ->fetchAllAssoc('set_name');
}