You are here

function translation_helpers_module_implements_alter in Translation helpers 7

Implement hook_module_implements_alter().

Set translation_helpers to act before translation module.

File

./translation_helpers.module, line 75
Provides methods for other modules to use with translated content.

Code

function translation_helpers_module_implements_alter(&$implementations, $hook) {
  if ($hook == 'node_delete') {

    // Move translation_helpers_node_delete() to the beginning of the list.
    $group = $implementations['translation_helpers'];
    unset($implementations['translation_helpers']);
    $implementations = array_merge(array(
      'translation_helpers' => $group,
    ), $implementations);
  }
}