function front_page_menu in Front Page 6.2
Same name and namespace in other branches
- 5 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()
Implementation of hook_menu().
File
- ./
front_page.module, line 32
Code
function front_page_menu() {
$items['admin/settings/front'] = array(
'title' => t('Front Page'),
'description' => '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.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'front_page_admin',
),
'access arguments' => array(
'administer front page',
),
'file' => 'front_page.admin.inc',
);
$items['admin/settings/front/settings'] = array(
'title' => t('Settings'),
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => 0,
);
$items['admin/settings/front/arrange'] = array(
'title' => 'Arrange',
'description' => 'Ability to re-arrange what order front page roles are processed.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'front_page_admin_arrange_form',
),
'access arguments' => array(
'administer front page',
),
'type' => MENU_LOCAL_TASK,
'file' => 'front_page.admin.inc',
'weight' => 1,
);
$items['admin/settings/front/home-links'] = array(
'title' => 'Home Links',
'description' => 'Ability to re-write the home links on the site to another local path.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'front_page_admin_home_links',
),
'access arguments' => array(
'administer front page',
),
'type' => MENU_LOCAL_TASK,
'file' => 'front_page.admin.inc',
'weight' => 2,
);
$items['front_page'] = array(
'title' => '',
'page callback' => 'front_page',
'access callback' => TRUE,
'type' => MENU_SUGGESTED_ITEM,
);
$items['front_page/preview/%'] = array(
'title' => '',
'page callback' => 'front_page',
'access callback' => TRUE,
'type' => MENU_SUGGESTED_ITEM,
);
return $items;
}