function field_test_entity_query_alter

Same name in other branches
  1. 10 core/modules/field/tests/modules/field_test/field_test.module \field_test_entity_query_alter()
  2. 11.x core/modules/field/tests/modules/field_test/field_test.module \field_test_entity_query_alter()

Implements hook_entity_query_alter().

File

modules/field/tests/field_test.module, line 188

Code

function field_test_entity_query_alter(&$query) {
    if (variable_get('field_test_entity_query_alter_execute_callback', FALSE)) {
        $query->executeCallback = 'field_test_dummy_field_storage_query';
    }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.