function 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 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

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.