You are here

function shortcut_set_title in Drupal 7

Returns the sanitized title of a shortcut set.

Deprecated. This function was previously used as a menu item title callback but has been replaced by shortcut_set_title_callback() (which does not sanitize the title, since the menu system does that automatically). In Drupal 7, use that function for title callbacks, and call check_plain() directly if you need a sanitized title. In Drupal 8, this function will be restored as a title callback and therefore will no longer sanitize its output.

Parameters

$shortcut_set: An object representing the shortcut set, as returned by shortcut_set_load().

File

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

Code

function shortcut_set_title($shortcut_set) {
  return check_plain($shortcut_set->title);
}