function field_test_module_implements_alter

Implements hook_module_implements_alter().

field_test_entity_info_alter() adds the bundles for its entities, and thus needs to run before rdf_entity_info_alter(). @todo Remove when http://drupal.org/node/1822458 is fixed.

File

drupal/core/modules/field/tests/modules/field_test/field_test.module, line 280

Code

function field_test_module_implements_alter(&$implementations, $hook) {
  if ($hook == 'entity_bundle_info_alter' && isset($implementations['field_test']) && isset($implementations['rdf'])) {
    foreach (array(
      'field_test',
      'rdf',
    ) as $module) {
      $group = $implementations[$module];
      unset($implementations[$module]);
      $implementations[$module] = $group;
    }
  }
}