summaryrefslogtreecommitdiff
path: root/modules/search
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-11-01 12:11:10 +0000
committerDries Buytaert <dries@buytaert.net>2009-11-01 12:11:10 +0000
commite4ca439ba1f901526526f73adb106f7075fb5f11 (patch)
tree76eb2589699014fb67f5f10fdaef86d6ba1a0821 /modules/search
parent534c89f21e46116d1a627057158ca1fd02b129a6 (diff)
downloadbrdo-e4ca439ba1f901526526f73adb106f7075fb5f11.tar.gz
brdo-e4ca439ba1f901526526f73adb106f7075fb5f11.tar.bz2
- Patch #595084 by c960657: use type hinting for .
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 63542657a..07c369366 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($node) {
+function search_node_update_index(stdClass $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));
$output = array();
@@ -729,7 +729,7 @@ function search_node_update_index($node) {
/**
* Implement hook_node_update().
*/
-function search_node_update($node) {
+function search_node_update(stdClass $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);