You are here

function og_test_module_implements_alter in Organic groups 7.2

Same name and namespace in other branches
  1. 8 tests/modules/og_test/og_test.module \og_test_module_implements_alter()

Implements hook_module_implements_alter().

File

tests/og_test.module, line 34
Test module for OG.

Code

function og_test_module_implements_alter(&$implementations, $hook) {
  if ($hook != 'entity_delete') {
    return;
  }

  // Switch the orders of the implementations.
  $og = $implementations['og'];
  $og_test = $implementations['og_test'];
  unset($implementations['og'], $implementations['og_test']);
  $implementations['og_test'] = $og_test;
  $implementations['og'] = $og;
}