summaryrefslogtreecommitdiff
path: root/modules/search
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2008-12-31 12:02:24 +0000
committerDries Buytaert <dries@buytaert.net>2008-12-31 12:02:24 +0000
commit5ba50b3fe83b1724b6cec12ded62663167a08e14 (patch)
tree20948b0d3e841b7a41ec7d5e511d70d278e24190 /modules/search
parentd813e3679c57da312cc0de61da90ff2c2eff70a6 (diff)
downloadbrdo-5ba50b3fe83b1724b6cec12ded62663167a08e14.tar.gz
brdo-5ba50b3fe83b1724b6cec12ded62663167a08e14.tar.bz2
- Patch #350984 by Moshe: kick comment rendering out of node module.
Diffstat (limited to 'modules/search')
-rw-r--r--modules/search/search.module5
-rw-r--r--modules/search/search.test2
2 files changed, 2 insertions, 5 deletions
diff --git a/modules/search/search.module b/modules/search/search.module
index 6b842d7f0..5c07acb31 100644
--- a/modules/search/search.module
+++ b/modules/search/search.module
@@ -281,10 +281,7 @@ function search_cron() {
register_shutdown_function('search_update_totals');
// Update word index
- foreach (module_implements('update_index') as $module) {
- $function = $module . '_update_index';
- $function();
- }
+ module_invoke_all('update_index');
}
/**
diff --git a/modules/search/search.test b/modules/search/search.test
index c7f9ecc77..02bde2f5c 100644
--- a/modules/search/search.test
+++ b/modules/search/search.test
@@ -300,7 +300,7 @@ class SearchRankingTestCase extends DrupalWebTestCase {
}
// Update the search index.
- node_update_index();
+ module_invoke_all('update_index');
search_update_totals();
// Refresh variables after the treatment.