function shortcut_set_title_exists

shortcut_set_title_exists($title)

Check to see if a shortcut set with the given title already exists.

Parameters

$title: Human-readable name of the shortcut set to check.

Return value

TRUE if a shortcut set with that title exists; FALSE otherwise.

File

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

Code

function shortcut_set_title_exists($title) {
  return (bool) db_query_range('SELECT 1 FROM {shortcut_set} WHERE title = :title', 0, 1, array(':title' => $title))->fetchField();
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!shortcut!shortcut.module/function/shortcut_set_title_exists/7.x