You are here

function field_tokens_enable in Field tokens 7

Implements hook_enable().

File

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

Code

function field_tokens_enable() {
  if (module_exists('formatted_field_tokens')) {
    $message = t('The Formatted Field tokens module is superseded by the Field tokens module, and should be disabled and deleted.');
    drupal_set_message($message, 'warning');
    watchdog('field_tokens', $message, array(), WATCHDOG_ERROR);
  }
}