summaryrefslogtreecommitdiff
path: root/modules/user/user.module
diff options
context:
space:
mode:
authorNeil Drumm <drumm@3064.no-reply.drupal.org>2006-08-29 09:12:03 +0000
committerNeil Drumm <drumm@3064.no-reply.drupal.org>2006-08-29 09:12:03 +0000
commitbceaf8f0daf1d76bb33afdef8ea231fbc855a5c2 (patch)
treecec3f6333255ce0632498c8594bd56c67a140726 /modules/user/user.module
parentad0e8b5615f4585f78ccbe27912c2545875a77f1 (diff)
downloadbrdo-bceaf8f0daf1d76bb33afdef8ea231fbc855a5c2.tar.gz
brdo-bceaf8f0daf1d76bb33afdef8ea231fbc855a5c2.tar.bz2
#80574 Eaton and chx. Replace $_POST['edit'] with $_POST.
Diffstat (limited to 'modules/user/user.module')
-rw-r--r--modules/user/user.module16
1 files changed, 8 insertions, 8 deletions
diff --git a/modules/user/user.module b/modules/user/user.module
index eb8825a79..54f279d60 100644
--- a/modules/user/user.module
+++ b/modules/user/user.module
@@ -1384,7 +1384,7 @@ function user_edit($category = 'account') {
drupal_set_message(t('The account does not exist or has already been deleted.'));
drupal_goto('admin/user/user');
}
- $edit = $_POST['op'] ? $_POST['edit'] : (array)$account;
+ $edit = $_POST['op'] ? $_POST : (array)$account;
if (arg(2) == 'delete') {
if ($edit['confirm']) {
@@ -1607,7 +1607,7 @@ function user_admin_access_check_submit($form_id, $edit) {
* Menu callback: add an access rule
*/
function user_admin_access_add($mask = NULL, $type = NULL) {
- if ($edit = $_POST['edit']) {
+ if ($edit = $_POST) {
if (!$edit['mask']) {
form_set_error('mask', t('You must enter a mask.'));
}
@@ -1653,7 +1653,7 @@ function user_admin_access_delete_confirm_submit($form_id, $edit) {
* Menu callback: edit an access rule
*/
function user_admin_access_edit($aid = 0) {
- if ($edit = $_POST['edit']) {
+ if ($edit = $_POST) {
if (!$edit['mask']) {
form_set_error('mask', t('You must enter a mask.'));
}
@@ -1870,7 +1870,7 @@ function user_admin_perm_submit($form_id, $edit) {
* Menu callback: administer roles.
*/
function user_admin_role() {
- $edit = isset($_POST['edit']) ? $_POST['edit'] : '';
+ $edit = isset($_POST) ? $_POST : '';
$op = isset($_POST['op']) ? $_POST['op'] : '';
$id = arg(4);
@@ -1933,7 +1933,7 @@ function theme_user_admin_new_role($form) {
}
function user_admin_account() {
- if ($_POST['edit']['accounts'] && $_POST['edit']['operation'] == 'delete') {
+ if ($_POST['accounts'] && $_POST['operation'] == 'delete') {
return user_multiple_delete_confirm();
}
@@ -2168,7 +2168,7 @@ function user_multiple_role_edit($accounts, $operation, $rid) {
}
function user_multiple_delete_confirm() {
- $edit = $_POST['edit'];
+ $edit = $_POST;
$form['accounts'] = array('#prefix' => '<ul>', '#suffix' => '</ul>', '#tree' => TRUE);
// array_filter returns only elements with TRUE values
@@ -2230,13 +2230,13 @@ function user_admin_settings() {
}
function user_admin($callback_arg = '') {
- $edit = isset($_POST['edit']) ? $_POST['edit'] : '';
+ $edit = isset($_POST) ? $_POST : '';
$op = isset($_POST['op']) ? $_POST['op'] : $callback_arg;
switch ($op) {
case 'search':
case t('Search'):
- $output = drupal_get_form('search_form', url('admin/user/search'), $_POST['edit']['keys'], 'user') . search_data($_POST['edit']['keys'], 'user');
+ $output = drupal_get_form('search_form', url('admin/user/search'), $_POST['keys'], 'user') . search_data($_POST['keys'], 'user');
break;
case t('Create new account'):
case 'create':