1.20.x taxonomy_test.module | taxonomy_test_query_term_access_alter(QueryAlterableInterface $query) |
Implements hook_query_TAG_alter().
File
- modules/
simpletest/ tests/ taxonomy_test.module, line 126 - Test module for Taxonomy hooks and functions not used in core.
Code
function taxonomy_test_query_term_access_alter(QueryAlterableInterface $query) {
$value = state_get(__FUNCTION__);
if (isset($value)) {
state_set(__FUNCTION__, ++$value);
}
}