function user_restrictions_ui_menu in User restrictions 7
Implements hook_menu().
File
- ./
user_restrictions_ui.module, line 20 - User interface for the User restrictions module.
Code
function user_restrictions_ui_menu() {
$edit_restrictions = array(
'edit user restriction rules',
);
$items = array();
$items['admin/config/people/user-restrictions'] = array(
'title' => 'User restrictions',
'description' => 'Specify rules for restricted usernames and e-mail addresses.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'user_restrictions_ui_overview_form',
),
'access arguments' => $edit_restrictions,
'file' => 'user_restrictions_ui.admin.inc',
'weight' => 14,
);
$items['admin/config/people/user-restrictions/list'] = array(
'title' => 'List',
'type' => MENU_DEFAULT_LOCAL_TASK,
'file' => 'user_restrictions_ui.admin.inc',
'weight' => -10,
);
$items['admin/config/people/user-restrictions/add'] = array(
'title' => 'Add rule',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'user_restrictions_ui_edit_rule_form',
),
'access arguments' => $edit_restrictions,
'type' => MENU_LOCAL_ACTION,
'file' => 'user_restrictions_ui.admin.inc',
);
$items['admin/config/people/user-restrictions/%user_restrictions/edit'] = array(
'title' => 'Edit restriction',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'user_restrictions_ui_edit_rule_form',
4,
),
'access arguments' => $edit_restrictions,
'type' => MENU_CALLBACK,
'file' => 'user_restrictions_ui.admin.inc',
);
$items['admin/config/people/user-restrictions/%user_restrictions/delete'] = array(
'title' => 'Delete rule',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'user_restrictions_ui_delete_rule_form',
4,
),
'access arguments' => $edit_restrictions,
'type' => MENU_CALLBACK,
'file' => 'user_restrictions_ui.admin.inc',
);
$items['admin/config/people/user-restrictions/import'] = array(
'title' => 'Import rules',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'user_restrictions_ui_import_rule_form',
),
'access arguments' => $edit_restrictions,
'type' => MENU_LOCAL_ACTION,
'file' => 'user_restrictions_ui.admin.inc',
);
return $items;
}