You are here

function fullcalendar_legend_preprocess_block in FullCalendar 7.2

Same name and namespace in other branches
  1. 8.5 modules/fullcalendar_legend/fullcalendar_legend.module \fullcalendar_legend_preprocess_block()
  2. 8 fullcalendar_legend/fullcalendar_legend.module \fullcalendar_legend_preprocess_block()
  3. 8.2 modules/fullcalendar_legend/fullcalendar_legend.module \fullcalendar_legend_preprocess_block()
  4. 8.3 fullcalendar_legend/fullcalendar_legend.module \fullcalendar_legend_preprocess_block()
  5. 8.4 modules/fullcalendar_legend/fullcalendar_legend.module \fullcalendar_legend_preprocess_block()

Implements hook_preprocess_block().

File

fullcalendar_legend/fullcalendar_legend.module, line 226
Adds a legend of event types.

Code

function fullcalendar_legend_preprocess_block(&$variables) {
  if ($variables['block']->module == 'fullcalendar_legend') {
    $variables['classes_array'][] = 'fullcalendar-legend';
  }
}