You are here

function shortcut_max_slots in Drupal 7

Returns the maximum number of shortcut "slots" available per shortcut set.

This is used as a limitation in the user interface only.

Return value

The maximum number of shortcuts allowed to be added to a shortcut set.

3 calls to shortcut_max_slots()
shortcut_link_add_inline in modules/shortcut/shortcut.admin.inc
Menu page callback: creates a new link in the provided shortcut set.
shortcut_link_add_submit in modules/shortcut/shortcut.admin.inc
Submit handler for shortcut_link_add().
theme_shortcut_set_customize in modules/shortcut/shortcut.admin.inc
Returns HTML for a shortcut set customization form.

File

modules/shortcut/shortcut.admin.inc, line 16
Administrative page callbacks for the shortcut module.

Code

function shortcut_max_slots() {
  return variable_get('shortcut_max_slots', 7);
}