function anonymous_publishing_cl_menu in Anonymous Publishing 7
Implements hook_menu().
File
- modules/
cl/ anonymous_publishing_cl.admin.inc, line 1101 - Menu callbacks for the CL tabs on the module admin page.
Code
function anonymous_publishing_cl_menu() {
$items = array();
$items['admin/config/people/anonymous_publishing_cl'] = array(
'title' => 'Anonymous Publishing CL',
'description' => "Administrator settings for the Anonymous Publishing CL (Craig's List model) submodule.",
'page callback' => 'drupal_get_form',
'page arguments' => array(
'anonymous_publishing_cl_admin_settings',
),
'access callback' => 'user_access',
'access arguments' => array(
'administer anonymous_publishing',
),
'type' => MENU_NORMAL_ITEM,
'weight' => 10,
);
$items['admin/config/people/anonymous_publishing_cl/settings'] = array(
'title' => 'Main settings',
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => -10,
);
$items['admin/config/people/anonymous_publishing_cl/email'] = array(
'title' => 'Message templates',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'anonymous_publishing_cl_admin_email',
),
'access callback' => 'user_access',
'access arguments' => array(
'administer anonymous_publishing',
),
'type' => MENU_LOCAL_TASK,
'weight' => -9,
);
$items['admin/config/people/anonymous_publishing_cl/moderation'] = array(
'title' => 'Moderation',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'anonymous_publishing_cl_admin_moderation',
),
'access callback' => 'user_access',
'access arguments' => array(
'administer anonymous_publishing',
),
'type' => MENU_LOCAL_TASK,
'weight' => -8,
);
$items['admin/config/people/anonymous_publishing_cl/users'] = array(
'title' => 'Verified',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'anonymous_publishing_cl_admin_blocked',
),
'access callback' => 'user_access',
'access arguments' => array(
'administer anonymous_publishing',
),
'type' => MENU_LOCAL_TASK,
'weight' => -7,
);
$items['admin/config/people/anonymous_publishing_cl/unverified'] = array(
'title' => 'Unverified',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'anonymous_publishing_cl_admin_unverified',
),
'access callback' => 'user_access',
'access arguments' => array(
'administer anonymous_publishing',
),
'type' => MENU_LOCAL_TASK,
'weight' => -6,
);
$items['admin/config/people/anonymous_publishing_cl/spam'] = array(
'title' => 'Spambots',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'anonymous_publishing_cl_admin_spam',
),
'access callback' => 'user_access',
'access arguments' => array(
'administer anonymous_publishing',
),
'type' => MENU_LOCAL_TASK,
'weight' => -5,
);
$items['admin/config/people/anonymous_publishing_cl/privacy'] = array(
'title' => 'Privacy',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'anonymous_publishing_cl_admin_privacy',
),
'access callback' => 'user_access',
'access arguments' => array(
'administer anonymous_publishing',
),
'type' => MENU_LOCAL_TASK,
'weight' => -4,
);
$items['node/%node/verify'] = array(
'title' => 'Anonymous Publishing',
'description' => 'Process url.',
'page callback' => 'anonymous_publishing_cl_verify',
'page arguments' => array(
1,
),
'access callback' => TRUE,
'type' => MENU_CALLBACK,
'weight' => 10,
);
$items['comment/%comment/verify'] = array(
'title' => 'Anonymous Publishing',
'description' => 'Process url.',
'page callback' => 'anonymous_publishing_cl_verify',
'page arguments' => array(
1,
),
'access callback' => TRUE,
'type' => MENU_CALLBACK,
'weight' => 10,
);
return $items;
}