function role_watchdog_menu in Role Watchdog 5
Same name and namespace in other branches
- 6.2 role_watchdog.module \role_watchdog_menu()
- 6 role_watchdog.module \role_watchdog_menu()
- 7.2 role_watchdog.module \role_watchdog_menu()
- 7 role_watchdog.module \role_watchdog_menu()
Implementation of hook_menu().
File
- ./
role_watchdog.module, line 28 - Logs changes to user roles.
Code
function role_watchdog_menu($may_cache) {
$items = array();
if ($may_cache) {
$items[] = array(
'path' => 'admin/settings/role_watchdog',
'title' => 'Role watchdog',
'description' => t('Logs changes to user roles.'),
'callback' => 'drupal_get_form',
'callback arguments' => 'role_watchdog_admin_settings',
'type' => MENU_NORMAL_ITEM,
'access' => user_access('administer site configuration'),
);
}
return $items;
}