function badbehavior_menu in Bad Behavior 5.2
Same name and namespace in other branches
- 6.2 badbehavior.module \badbehavior_menu()
- 6 badbehavior.module \badbehavior_menu()
- 7.2 badbehavior.module \badbehavior_menu()
Implementation of hook_menu().
File
- ./
badbehavior.module, line 24
Code
function badbehavior_menu($may_cache) {
$items = array();
if ($may_cache) {
$items[] = array(
'path' => 'admin/settings/badbehavior',
'title' => t('Bad behavior'),
'description' => t('Configure automatic spam blocking for your site.'),
'callback' => 'drupal_get_form',
'callback arguments' => array(
'badbehavior_settings',
),
'access' => user_access('administer bad behavior'),
);
$items[] = array(
'path' => 'admin/logs/badbehavior',
'title' => t('Bad behavior'),
'description' => t('Examine the spam blocking logs for your web site.'),
'callback' => 'badbehavior_overview',
'access' => user_access('administer bad behavior'),
);
$items[] = array(
'path' => 'admin/logs/badbehavior/event',
'title' => t('Details'),
'callback' => 'badbehavior_event',
'access' => user_access('administer bad behavior'),
'type' => MENU_CALLBACK,
);
}
return $items;
}