1 |
6ff32cea
|
Florent Torregrosa
|
<?php
|
2 |
|
|
|
3 |
|
|
/**
|
4 |
|
|
* @file
|
5 |
|
|
* Dummy module implementing a node search hooks for search module testing.
|
6 |
|
|
*/
|
7 |
|
|
|
8 |
|
|
|
9 |
|
|
/**
|
10 |
|
|
* Implements hook_query_alter().
|
11 |
|
|
*/
|
12 |
|
|
function search_node_tags_query_alter(QueryAlterableInterface $query) {
|
13 |
|
|
if ($query->hasTag('search_node')) {
|
14 |
|
|
variable_set('search_node_tags_test_query_tag', TRUE);
|
15 |
|
|
}
|
16 |
|
|
}
|
17 |
|
|
|
18 |
|
|
/**
|
19 |
|
|
* Implements hook_query_TAG_alter().
|
20 |
|
|
*/
|
21 |
|
|
function search_node_tags_query_search_node_alter(QueryAlterableInterface $query) {
|
22 |
|
|
variable_set('search_node_tags_test_query_tag_hook', TRUE);
|
23 |
|
|
} |