You are here

function subuser_switch_menu in Subuser 8

Same name and namespace in other branches
  1. 7.2 switch/subuser_switch.module \subuser_switch_menu()

Implements hook_menu().

File

switch/subuser_switch.module, line 24
Provides primary Drupal hook implementations.

Code

function subuser_switch_menu() {
  $items = array();
  $items['subuser/switch/%user'] = array(
    'title' => 'Subuser switch',
    'page callback' => 'subuser_switch_user',
    'page arguments' => array(
      2,
    ),
    'access callback' => 'subuser_switch_user_access',
    'access arguments' => array(
      2,
    ),
    'type' => MENU_CALLBACK,
  );
  return $items;
}