You are here

function token_filter_preprocess_field in Token Filter 8

Implements hook_preprocess_HOOK().

File

./token_filter.module, line 13
Core functions for the Token Filter module.

Code

function token_filter_preprocess_field(&$variables) {
  if (isset($variables['element']['#object']) && $variables['element']['#object'] instanceof ContentEntityInterface) {
    $entity =& drupal_static('token_filter_entity');
    $entity = $variables['element']['#object'];
  }
}