diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-05-09 18:28:13 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-05-09 18:28:13 +0000 |
commit | 0e0ca3b589668041022e3191d749d4c5acaee6e9 (patch) | |
tree | 9e1af632339babc89bb2d5d0a0c32eaf5419a014 /modules/node/node.module | |
parent | 557128c9190b814d1261e30a4b9a760699b92a6b (diff) | |
download | brdo-0e0ca3b589668041022e3191d749d4c5acaee6e9.tar.gz brdo-0e0ca3b589668041022e3191d749d4c5acaee6e9.tar.bz2 |
- Patch #457532 by Berdir: more PHP5 'fixes'.
Diffstat (limited to 'modules/node/node.module')
-rw-r--r-- | modules/node/node.module | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/modules/node/node.module b/modules/node/node.module index b557a56cb..2afd1edd2 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -738,14 +738,14 @@ function node_type_set_defaults($info = array()) { /** * Determine whether a node hook exists. * - * @param &$node + * @param $node * Either a node object, node array, or a string containing the node type. * @param $hook * A string containing the name of the hook. * @return * TRUE iff the $hook exists in the node type of $node. */ -function node_hook(&$node, $hook) { +function node_hook($node, $hook) { $base = node_get_types('base', $node); return module_hook($base, $hook); } @@ -753,7 +753,7 @@ function node_hook(&$node, $hook) { /** * Invoke a node hook. * - * @param &$node + * @param $node * Either a node object, node array, or a string containing the node type. * @param $hook * A string containing the name of the hook. @@ -762,7 +762,7 @@ function node_hook(&$node, $hook) { * @return * The returned value of the invoked hook. */ -function node_invoke(&$node, $hook, $a2 = NULL, $a3 = NULL, $a4 = NULL) { +function node_invoke($node, $hook, $a2 = NULL, $a3 = NULL, $a4 = NULL) { if (node_hook($node, $hook)) { $base = node_get_types('base', $node); $function = $base . '_' . $hook; @@ -1040,7 +1040,7 @@ function node_submit($node) { * The $node object to be saved. If $node->nid is * omitted (or $node->is_new is TRUE), a new node will be added. */ -function node_save(&$node) { +function node_save($node) { field_attach_presave('node', $node); // Let modules modify the node before it is saved to the database. module_invoke_all('node_presave', $node); @@ -1146,7 +1146,7 @@ function node_save(&$node) { * Node is taken by reference, because drupal_write_record() updates the * $node with the revision id, and we need to pass that back to the caller. */ -function _node_save_revision(&$node, $uid, $update = NULL) { +function _node_save_revision($node, $uid, $update = NULL) { $temp_uid = $node->uid; $node->uid = $uid; if (isset($update)) { @@ -2984,7 +2984,7 @@ function node_action_info() { * Implementation of a Drupal action. * Sets the status of a node to 1, meaning published. */ -function node_publish_action(&$node, $context = array()) { +function node_publish_action($node, $context = array()) { $node->status = 1; watchdog('action', 'Set @type %title to published.', array('@type' => node_get_types('name', $node), '%title' => $node->title)); } @@ -2993,7 +2993,7 @@ function node_publish_action(&$node, $context = array()) { * Implementation of a Drupal action. * Sets the status of a node to 0, meaning unpublished. */ -function node_unpublish_action(&$node, $context = array()) { +function node_unpublish_action($node, $context = array()) { $node->status = 0; watchdog('action', 'Set @type %title to unpublished.', array('@type' => node_get_types('name', $node), '%title' => $node->title)); } @@ -3002,7 +3002,7 @@ function node_unpublish_action(&$node, $context = array()) { * Implementation of a Drupal action. * Sets the sticky-at-top-of-list property of a node to 1. */ -function node_make_sticky_action(&$node, $context = array()) { +function node_make_sticky_action($node, $context = array()) { $node->sticky = 1; watchdog('action', 'Set @type %title to sticky.', array('@type' => node_get_types('name', $node), '%title' => $node->title)); } @@ -3011,7 +3011,7 @@ function node_make_sticky_action(&$node, $context = array()) { * Implementation of a Drupal action. * Sets the sticky-at-top-of-list property of a node to 0. */ -function node_make_unsticky_action(&$node, $context = array()) { +function node_make_unsticky_action($node, $context = array()) { $node->sticky = 0; watchdog('action', 'Set @type %title to unsticky.', array('@type' => node_get_types('name', $node), '%title' => $node->title)); } @@ -3020,7 +3020,7 @@ function node_make_unsticky_action(&$node, $context = array()) { * Implementation of a Drupal action. * Sets the promote property of a node to 1. */ -function node_promote_action(&$node, $context = array()) { +function node_promote_action($node, $context = array()) { $node->promote = 1; watchdog('action', 'Promoted @type %title to front page.', array('@type' => node_get_types('name', $node), '%title' => $node->title)); } @@ -3029,7 +3029,7 @@ function node_promote_action(&$node, $context = array()) { * Implementation of a Drupal action. * Sets the promote property of a node to 0. */ -function node_unpromote_action(&$node, $context = array()) { +function node_unpromote_action($node, $context = array()) { $node->promote = 0; watchdog('action', 'Removed @type %title from front page.', array('@type' => node_get_types('name', $node), '%title' => $node->title)); } @@ -3047,7 +3047,7 @@ function node_save_action($node) { * Implementation of a configurable Drupal action. * Assigns ownership of a node to a user. */ -function node_assign_owner_action(&$node, $context) { +function node_assign_owner_action($node, $context) { $node->uid = $context['owner_uid']; $owner_name = db_query("SELECT name FROM {users} WHERE uid = :uid", array(':uid' => $context['owner_uid']))->fetchField(); watchdog('action', 'Changed owner of @type %title to uid %name.', array('@type' => node_get_types('type', $node), '%title' => $node->title, '%name' => $owner_name)); |