You are here

function addtocalendar_preprocess_field in Add To Calendar Button (AddEvent.com) 8.2

Same name and namespace in other branches
  1. 8 addtocalendar.module \addtocalendar_preprocess_field()
  2. 8.3 addtocalendar.module \addtocalendar_preprocess_field()
  3. 7.2 addtocalendar.module \addtocalendar_preprocess_field()
  4. 7 addtocalendar.module \addtocalendar_preprocess_field()

Implements hook_preprocess_field().

File

./addtocalendar.module, line 50
Contains module code.

Code

function addtocalendar_preprocess_field(&$variables) {
  if ($variables['field_type'] == 'datetime' || $variables['field_type'] == 'daterange') {
    _addtocalendar_preprocess_field($variables);
  }
}