diff options
Diffstat (limited to 'modules/shortcut/shortcut.module')
-rw-r--r-- | modules/shortcut/shortcut.module | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/modules/shortcut/shortcut.module b/modules/shortcut/shortcut.module index 7144dae93..8e9773de1 100644 --- a/modules/shortcut/shortcut.module +++ b/modules/shortcut/shortcut.module @@ -583,6 +583,19 @@ function shortcut_sets() { } /** + * Check to see if a shortcut set with the given title already exists. + * + * @param $title + * Human-readable name of the shortcut set to check. + * + * @return + * TRUE if a shortcut set with that title exists; FALSE otherwise. + */ +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(); +} + +/** * Determines if a path corresponds to a valid shortcut link. * * @param $path |