You are here

function shortcut_sets in Drupal 7

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 modules/shortcut/shortcut.test
Tests creating a shortcut set.
ShortcutSetsTestCase::testShortcutSetDelete in modules/shortcut/shortcut.test
Tests deleting a shortcut set.
shortcut_set_admin in modules/shortcut/shortcut.admin.inc
Menu page callback: builds the page for administering shortcut sets.
shortcut_set_switch in modules/shortcut/shortcut.admin.inc
Form callback: builds the form for switching shortcut sets.
shortcut_uninstall in modules/shortcut/shortcut.install
Implements hook_uninstall().

File

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');
}