updated core to 7.54
This commit is contained in:
@@ -109,3 +109,33 @@ function taxonomy_test_get_antonym($tid) {
|
||||
->execute()
|
||||
->fetchField();
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_query_alter().
|
||||
*/
|
||||
function taxonomy_test_query_alter(QueryAlterableInterface $query) {
|
||||
$value = variable_get(__FUNCTION__);
|
||||
if (isset($value)) {
|
||||
variable_set(__FUNCTION__, ++$value);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_query_TAG_alter().
|
||||
*/
|
||||
function taxonomy_test_query_term_access_alter(QueryAlterableInterface $query) {
|
||||
$value = variable_get(__FUNCTION__);
|
||||
if (isset($value)) {
|
||||
variable_set(__FUNCTION__, ++$value);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_query_TAG_alter().
|
||||
*/
|
||||
function taxonomy_test_query_taxonomy_term_access_alter(QueryAlterableInterface $query) {
|
||||
$value = variable_get(__FUNCTION__);
|
||||
if (isset($value)) {
|
||||
variable_set(__FUNCTION__, ++$value);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user