function shortcut_max_slots

7.x shortcut.admin.inc shortcut_max_slots()

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 drupal-7.x/modules/shortcut/shortcut.admin.inc
Menu page callback: creates a new link in the provided shortcut set.
shortcut_link_add_submit in drupal-7.x/modules/shortcut/shortcut.admin.inc
Submit handler for shortcut_link_add().
theme_shortcut_set_customize in drupal-7.x/modules/shortcut/shortcut.admin.inc
Returns HTML for a shortcut set customization form.

File

drupal-7.x/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);
}