Commit 5ecb6880 authored by Gábor Hojtsy's avatar Gábor Hojtsy
Browse files

#210211 by chx, theborg: removing the broken admin user search, which would...

#210211 by chx, theborg: removing the broken admin user search, which would provide the same as the public facing user search anyway
parent 7f85bc5b
......@@ -10,11 +10,6 @@ function user_admin($callback_arg = '') {
$op = isset($_POST['op']) ? $_POST['op'] : $callback_arg;
switch ($op) {
case 'search':
case t('Search'):
$keys = isset($_POST['keys']) ? $_POST['keys'] : NULL;
$output = drupal_get_form('search_form', url('admin/user/search'), $keys, 'user') . search_data($keys, 'user');
break;
case t('Create new account'):
case 'create':
$output = drupal_get_form('user_register');
......
......@@ -1025,17 +1025,6 @@ function user_menu() {
'file' => 'user.admin.inc',
);
if (module_exists('search')) {
$items['admin/user/search'] = array(
'title' => 'Search users',
'description' => 'Search users by name or e-mail address.',
'page callback' => 'user_admin',
'page arguments' => array('search'),
'access arguments' => array('administer users'),
'file' => 'user.admin.inc',
);
}
$items['logout'] = array(
'title' => 'Log out',
'access callback' => 'user_is_logged_in',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment