function taxonomy_test_query_taxonomy_term_access_alter
Same name in other branches
- 9 core/modules/taxonomy/tests/modules/taxonomy_test/taxonomy_test.module \taxonomy_test_query_taxonomy_term_access_alter()
- 8.9.x core/modules/taxonomy/tests/modules/taxonomy_test/taxonomy_test.module \taxonomy_test_query_taxonomy_term_access_alter()
- 10 core/modules/taxonomy/tests/modules/taxonomy_test/taxonomy_test.module \taxonomy_test_query_taxonomy_term_access_alter()
- 11.x core/modules/taxonomy/tests/modules/taxonomy_test/taxonomy_test.module \taxonomy_test_query_taxonomy_term_access_alter()
Implements hook_query_TAG_alter().
2 string references to 'taxonomy_test_query_taxonomy_term_access_alter'
- TaxonomyQueryAlterTestCase::assertQueryTagTestResult in modules/
taxonomy/ taxonomy.test - Verifies invocation of the hooks in the test module.
- TaxonomyQueryAlterTestCase::setupQueryTagTestHooks in modules/
taxonomy/ taxonomy.test - Sets up the hooks in the test module.
File
-
modules/
simpletest/ tests/ taxonomy_test.module, line 136
Code
function taxonomy_test_query_taxonomy_term_access_alter(QueryAlterableInterface $query) {
$value = variable_get(__FUNCTION__);
if (isset($value)) {
variable_set(__FUNCTION__, ++$value);
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.