function taxonomy_test_query_term_access_alter

Implements hook_query_TAG_alter().

2 string references to 'taxonomy_test_query_term_access_alter'
TaxonomyQueryAlterTestCase::assertQueryTagTestResult in drupal/modules/taxonomy/taxonomy.test
Verifies invocation of the hooks in the test module.
TaxonomyQueryAlterTestCase::setupQueryTagTestHooks in drupal/modules/taxonomy/taxonomy.test
Sets up the hooks in the test module.

File

drupal/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 = variable_get(__FUNCTION__);
  if (isset($value)) {
    variable_set(__FUNCTION__, ++$value);
  }
}