function duplicate_menu in Spam 5.3
Drupal _menu() hook.
File
- filters/
duplicate/ duplicate.module, line 24
Code
function duplicate_menu($may_cache) {
$items = array();
if ($may_cache) {
$items[] = array(
'path' => 'admin/settings/spam/filters/duplicate',
'title' => t('Duplicate'),
'callback' => 'drupal_get_form',
'callback arguments' => array(
'duplicate_admin_settings',
),
'description' => t('Configure the spam duplicate filter.'),
'type' => MENU_LOCAL_TASK,
);
$items[] = array(
'path' => 'duplicate/denied/ip',
'callback' => 'duplicate_denied_ip',
'type' => MENU_CALLBACK,
'access' => TRUE,
);
$items[] = array(
'path' => 'duplicate/denied/post',
'callback' => 'duplicate_denied_post',
'type' => MENU_CALLBACK,
'access' => TRUE,
);
$items[] = array(
'path' => 'admin/logs/spam/blocked_ip',
'title' => t('Blocked IPs'),
'access' => user_access('administer spam'),
'callback' => 'spam_logs_blocked_ip',
'type' => MENU_LOCAL_TASK,
);
}
return $items;
}