From 6f0e54b037618676af98d7c59f87b16b0745d575 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 8 Sep 2006 16:33:02 +0000 Subject: - Patch #82465 by webchick: renamed variables in hooks for consistency. --- modules/node/node.module | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'modules/node/node.module') diff --git a/modules/node/node.module b/modules/node/node.module index bc76dacc7..0f2d24dbe 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -1389,11 +1389,11 @@ function node_filter_form_submit() { /** * Submit the node administration update form. */ -function node_admin_nodes_submit($form_id, $edit) { +function node_admin_nodes_submit($form_id, $form_values) { $operations = module_invoke_all('node_operations'); - $operation = $operations[$edit['operation']]; + $operation = $operations[$form_values['operation']]; // Filter out unchecked nodes - $nodes = array_filter($edit['nodes']); + $nodes = array_filter($form_values['nodes']); if ($function = $operation['callback']) { // Add in callback arguments if present. if (isset($operation['callback arguments'])) { @@ -1409,8 +1409,8 @@ function node_admin_nodes_submit($form_id, $edit) { } } -function node_admin_nodes_validate($form_id, $edit) { - $nodes = array_filter($edit['nodes']); +function node_admin_nodes_validate($form_id, $form_values) { + $nodes = array_filter($form_values['nodes']); if (count($nodes) == 0) { form_set_error('', t('No items selected.')); } @@ -1515,9 +1515,9 @@ function node_multiple_delete_confirm() { t('Delete all'), t('Cancel')); } -function node_multiple_delete_confirm_submit($form_id, $edit) { - if ($edit['confirm']) { - foreach ($edit['nodes'] as $nid => $value) { +function node_multiple_delete_confirm_submit($form_id, $form_values) { + if ($form_values['confirm']) { + foreach ($form_values['nodes'] as $nid => $value) { node_delete($nid); } drupal_set_message(t('The items have been deleted.')); @@ -2113,11 +2113,11 @@ function theme_node_log_message($log) { return '
'. t('Log') .':
'. $log .'
'; } -function node_form_submit($form_id, $edit) { +function node_form_submit($form_id, $form_values) { global $user; // Fix up the node when required: - $node = node_submit($edit); + $node = node_submit($form_values); // Prepare the node's body: if ($node->nid) { -- cgit v1.2.3