diff --git a/volunteer_shifts/volunteer_shifts.features.menu_links.inc b/volunteer_shifts/volunteer_shifts.features.menu_links.inc new file mode 100644 index 0000000..7684467 --- /dev/null +++ b/volunteer_shifts/volunteer_shifts.features.menu_links.inc @@ -0,0 +1,52 @@ + '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; +} diff --git a/volunteer_shifts/volunteer_shifts.info b/volunteer_shifts/volunteer_shifts.info index ecf1411..8d598c9 100644 --- a/volunteer_shifts/volunteer_shifts.info +++ b/volunteer_shifts/volunteer_shifts.info @@ -6,6 +6,7 @@ dependencies[] = "context" dependencies[] = "date" dependencies[] = "features" dependencies[] = "jcalendar" +dependencies[] = "menu" dependencies[] = "number" dependencies[] = "optionwidgets" dependencies[] = "search" @@ -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"