function entity_crud_hook_test_entity_info_alter

Implements hook_entity_info_alter().

File

modules/simpletest/tests/entity_crud_hook_test.module, line 256

Code

function entity_crud_hook_test_entity_info_alter(&$entity_info) {
  if (variable_get('entity_crud_hook_test_alter_controller_class', FALSE)) {
    // Set the controller class for nodes to NULL.
    $entity_info['node']['controller class'] = NULL;
  }
}

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