You are here

function menu_per_role_menu in Menu Per Role 7

Same name and namespace in other branches
  1. 6 menu_per_role.module \menu_per_role_menu()

Implements hook_menu().

File

./menu_per_role.module, line 41
Allows restricting access to menu items per role.

Code

function menu_per_role_menu() {
  $menu = array();
  $menu['admin/config/system/menu_per_role'] = array(
    'title' => 'Menu Per Role',
    'description' => 'Settings for the Menu Per Role module',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'menu_per_role_settings_form',
    ),
    'access arguments' => array(
      'administer menu_per_role',
    ),
    'file' => 'menu_per_role.admin.inc',
  );
  return $menu;
}