Skip to content

Commit

Permalink
Adding an add shift link and a logout link to secondary menu.
Browse files Browse the repository at this point in the history
  • Loading branch information
jhedstrom committed Feb 25, 2011
1 parent 7afc550 commit 2a4e4d6
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 0 deletions.
52 changes: 52 additions & 0 deletions volunteer_shifts/volunteer_shifts.features.menu_links.inc
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;
}
3 changes: 3 additions & 0 deletions volunteer_shifts/volunteer_shifts.info
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ dependencies[] = "context"
dependencies[] = "date"
dependencies[] = "features"
dependencies[] = "jcalendar"
dependencies[] = "menu"
dependencies[] = "number"
dependencies[] = "optionwidgets"
dependencies[] = "search"
Expand All @@ -22,6 +23,8 @@ features[context][] = "sitewide"
features[ctools][] = "boxes:box:1"
features[ctools][] = "context:context:3"
features[ctools][] = "strongarm:strongarm:1"
features[menu_links][] = "secondary-links:logout"
features[menu_links][] = "secondary-links:node/add/shift"
features[node][] = "shift"
features[user_permission][] = "administer nodes"
features[user_permission][] = "create shift content"
Expand Down

0 comments on commit 2a4e4d6

Please sign in to comment.