diff options
author | Dries Buytaert <dries@buytaert.net> | 2006-09-08 16:33:02 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2006-09-08 16:33:02 +0000 |
commit | 6f0e54b037618676af98d7c59f87b16b0745d575 (patch) | |
tree | dd4b4df4d0be79b3d449b291ea75342dc5c9107d /modules/node | |
parent | 6ce212e4ebeccb43e4e65421816d99c02019b9b7 (diff) | |
download | brdo-6f0e54b037618676af98d7c59f87b16b0745d575.tar.gz brdo-6f0e54b037618676af98d7c59f87b16b0745d575.tar.bz2 |
- Patch #82465 by webchick: renamed variables in hooks for consistency.
Diffstat (limited to 'modules/node')
-rw-r--r-- | modules/node/node.module | 20 |
1 files changed, 10 insertions, 10 deletions
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 '<div class="log"><div class="title">'. t('Log') .':</div>'. $log .'</div>'; } -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) { |