You are here

function field_tokens_module_implements_alter in Field tokens 7

Implements hook_module_implements_alter().

File

./field_tokens.module, line 23
Core functions for the Field tokens module.

Code

function field_tokens_module_implements_alter(&$implementations, $hook) {

  // Prevent the Formatted Field tokens module from interfering with the Field
  // tokens module by suppressing it's hook_tokens function.
  if ($hook == 'tokens' && in_array('formatted_field_tokens', array_keys($implementations))) {
    unset($implementations['formatted_field_tokens']);
  }
}