Loads the data for a shortcut set.
$set_name: The name of the shortcut set to load.
object If the shortcut set exists, an object containing the following properties:
If the shortcut set does not exist, the function returns FALSE.
function shortcut_set_load($set_name) {
$set = db_select('shortcut_set', 'ss')
->fields('ss')
->condition('set_name', $set_name)
->execute()
->fetchObject();
if (!$set) {
return FALSE;
}
$set->links = menu_load_links($set_name);
return $set;
}