Project

General

Profile

Revision b0dc3a2e

Added by Julien Enselme over 7 years ago

Update to Drupal 7.52

View differences:

drupal7/modules/simpletest/tests/taxonomy_test.module
109 109
    ->execute()
110 110
    ->fetchField();
111 111
}
112

  
113
/**
114
 * Implements hook_query_alter().
115
 */
116
function taxonomy_test_query_alter(QueryAlterableInterface $query) {
117
  $value = variable_get(__FUNCTION__);
118
  if (isset($value)) {
119
    variable_set(__FUNCTION__, ++$value);
120
  }
121
}
122

  
123
/**
124
 * Implements hook_query_TAG_alter().
125
 */
126
function taxonomy_test_query_term_access_alter(QueryAlterableInterface $query) {
127
  $value = variable_get(__FUNCTION__);
128
  if (isset($value)) {
129
    variable_set(__FUNCTION__, ++$value);
130
  }
131
}
132

  
133
/**
134
 * Implements hook_query_TAG_alter().
135
 */
136
function taxonomy_test_query_taxonomy_term_access_alter(QueryAlterableInterface $query) {
137
  $value = variable_get(__FUNCTION__);
138
  if (isset($value)) {
139
    variable_set(__FUNCTION__, ++$value);
140
  }
141
}

Also available in: Unified diff