I am in the process of writing a drupal 7 install profile and am having trouble with a getting it to set up some default shortcuts for the tool bar as I do not one the find content one to be in their.
In the .install file I have this code:
// Set Up Shortcuts
$shortcut_set = shortcut_set_load(SHORTCUT_DEFAULT_SET_NAME);
$shortcut_set->links = array(
array(
'link_path' => 'node/add',
'link_title' => st('Add content'),
'weight' => -20,
),
array(
'link_path' => 'admin/existing-content',
'link_title' => st('Existing content'),
'weight' => -19,
),
array(
'link_path' => 'admin/structure/menu/manage/main-menu',
'link_title' => st('Menu'),
'weight' => -18,
),
);
shortcut_set_save($shortcut_set);
How do I get it to overrite the default ones?
During the installation, create a new set and save the set name in a variable.
Then in a module, implement the "shortcut_default_set" hook.