function role_watchdog_menu in Role Watchdog 7
Same name and namespace in other branches
- 5 role_watchdog.module \role_watchdog_menu()
- 6.2 role_watchdog.module \role_watchdog_menu()
- 6 role_watchdog.module \role_watchdog_menu()
- 7.2 role_watchdog.module \role_watchdog_menu()
Implements hook_menu().
File
- ./
role_watchdog.module, line 46 - Logs changes to user roles.
Code
function role_watchdog_menu() {
$items = array();
$items['admin/config/people/role_watchdog'] = array(
'title' => 'Role watchdog',
'description' => 'Logs changes to user roles.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'role_watchdog_admin_settings',
),
'type' => MENU_NORMAL_ITEM,
'access arguments' => array(
'administer site configuration',
),
'file' => 'role_watchdog.admin.inc',
);
$items['admin/reports/role_grants'] = array(
'title' => 'Role grants report',
'description' => 'View changes to role assignments for users.',
'page callback' => 'role_watchdog_report',
'access arguments' => array(
'view role history',
),
'file' => 'role_watchdog.pages.inc',
);
$items['user/%user/track/role_history'] = array(
'title' => 'Track role history',
'page callback' => 'role_watchdog_history',
'page arguments' => array(
1,
),
'access callback' => '_role_watchdog_history_access',
'access arguments' => array(
1,
),
'type' => MENU_LOCAL_TASK,
'file' => 'role_watchdog.pages.inc',
'weight' => '20',
);
$items['user/%user/track/role_grants'] = array(
'title' => 'Track role grants',
'page callback' => 'role_watchdog_grants',
'page arguments' => array(
1,
),
'access callback' => '_role_watchdog_history_access',
'access arguments' => array(
1,
),
'type' => MENU_LOCAL_TASK,
'file' => 'role_watchdog.pages.inc',
'weight' => '21',
);
return $items;
}