You are here

function accountmenu_menu in Account menu 7

Same name and namespace in other branches
  1. 6 accountmenu.module \accountmenu_menu()

Implements hook_menu.

File

./accountmenu.module, line 39
accountmenu.module Provide a dynamic Log in/My account/Log out account menu

Code

function accountmenu_menu() {
  $items['admin/config/people/accountmenu'] = array(
    'title' => 'Account menu',
    'description' => 'Configure account menu',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'accountmenu_settings_form',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'type' => MENU_NORMAL_ITEM,
    'file' => 'accountmenu.admin.inc',
  );
  $items['user/self'] = array(
    'title' => 'My Own Account',
    'description' => 'The user\'s own account page.',
    'page callback' => 'accountmenu_myaccount',
    'access callback' => 'accountmenu_self_access',
    'menu_name' => 'accountmenu',
    'type' => MENU_NORMAL_ITEM,
  );
  return $items;
}