function front_page_menu in Front Page 5
Same name and namespace in other branches
- 6.2 front_page.module \front_page_menu()
- 6 front_page.module \front_page_menu()
- 7.2 front_page.module \front_page_menu()
- 7 front_page.module \front_page_menu()
this function sets the necessary paths etc. so drupal knows where to find the front_page
File
- ./
front_page.module, line 47
Code
function front_page_menu($may_cache) {
$items = array();
if ($may_cache) {
$items[] = array(
'path' => 'admin/settings/front',
'title' => t('advanced front page settings'),
'description' => t('Specify a unique layout or splash page based on role type - override your HOME and breadcrumb links - display a custom mission style notice for users who haven\'t visited in a while - disable site and display a \'temporarily offline\' message.'),
'callback' => 'drupal_get_form',
'callback arguments' => 'front_page_admin',
'access' => user_access('administer menu'),
);
$items[] = array(
'path' => 'front_page',
'title' => t(''),
'callback' => 'front_page',
'access' => TRUE,
'type' => MENU_SUGGESTED_ITEM,
);
$items[] = array(
'path' => 'admin/settings/front/uninstall',
'description' => t('This will uninstall the front page module.'),
'callback' => 'uninstall_front_page',
'type' => MENU_CALLBACK,
'access' => user_access('administer menu'),
);
}
return $items;
}