summaryrefslogtreecommitdiff
path: root/modules/search
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-11-08 10:02:41 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-11-08 10:02:41 +0000
commit4d46b7cdf838900dc3f052197b63a9ce80d3992b (patch)
treeb3ea3efb3c29a98afb8724c5655b82864395b928 /modules/search
parent370d07e9f75bf5ebdd6ac87de0f0b956d3f8dabd (diff)
downloadbrdo-4d46b7cdf838900dc3f052197b63a9ce80d3992b.tar.gz
brdo-4d46b7cdf838900dc3f052197b63a9ce80d3992b.tar.bz2
Roll-back of #595084; type-hinting parameters at stdClass makes it so you can't ever pass in another type of class.
Diffstat (limited to 'modules/search')
-rw-r--r--modules/search/search.module4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/search/search.module b/modules/search/search.module
index c64d38297..61064cf4b 100644
--- a/modules/search/search.module
+++ b/modules/search/search.module
@@ -714,7 +714,7 @@ function search_touch_node($nid) {
/**
* Implement hook_node_update_index().
*/
-function search_node_update_index(stdClass $node) {
+function search_node_update_index($node) {
// Transplant links to a node into the target node.
$result = db_query("SELECT caption FROM {search_node_links} WHERE nid = :nid", array(':nid' => $node->nid), array('target' => 'slave'));
$output = array();
@@ -729,7 +729,7 @@ function search_node_update_index(stdClass $node) {
/**
* Implement hook_node_update().
*/
-function search_node_update(stdClass $node) {
+function search_node_update($node) {
// Reindex the node when it is updated. The node is automatically indexed
// when it is added, simply by being added to the node table.
search_touch_node($node->nid);