summaryrefslogtreecommitdiff
path: root/modules/search
diff options
context:
space:
mode:
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.