-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding an add shift link and a logout link to secondary menu.
- Loading branch information
Showing
2 changed files
with
55 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<?php | ||
|
||
/** | ||
* Implementation of hook_menu_default_menu_links(). | ||
*/ | ||
function volunteer_shifts_menu_default_menu_links() { | ||
$menu_links = array(); | ||
|
||
// Exported menu link: secondary-links:logout | ||
$menu_links['secondary-links:logout'] = array( | ||
'menu_name' => 'secondary-links', | ||
'link_path' => 'logout', | ||
'router_path' => 'logout', | ||
'link_title' => 'Logout', | ||
'options' => array( | ||
'attributes' => array( | ||
'title' => '', | ||
), | ||
), | ||
'module' => 'menu', | ||
'hidden' => '0', | ||
'external' => '0', | ||
'has_children' => '0', | ||
'expanded' => '0', | ||
'weight' => '42', | ||
); | ||
// Exported menu link: secondary-links:node/add/shift | ||
$menu_links['secondary-links:node/add/shift'] = array( | ||
'menu_name' => 'secondary-links', | ||
'link_path' => 'node/add/shift', | ||
'router_path' => 'node/add/shift', | ||
'link_title' => 'Add shift', | ||
'options' => array( | ||
'attributes' => array( | ||
'title' => '', | ||
), | ||
), | ||
'module' => 'menu', | ||
'hidden' => '0', | ||
'external' => '0', | ||
'has_children' => '0', | ||
'expanded' => '0', | ||
'weight' => '-50', | ||
); | ||
// Translatables | ||
// Included for use with string extractors like potx. | ||
t('Add shift'); | ||
t('Logout'); | ||
|
||
|
||
return $menu_links; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters