You are here

function hook_fullcalendar_view_variables_alter in Fullcalendar View 8.2

Allows to alter the $variables data before rendering.

Parameters

$variables:

1 invocation of hook_fullcalendar_view_variables_alter()
template_preprocess_views_view_fullcalendar in ./fullcalendar_view.theme.inc
Implement fullcalendar view theme preprocess function.

File

./fullcalendar_view.services.api.php, line 18
Hooks and API provided by the "Full Calendar View Plugin" module.

Code

function hook_fullcalendar_view_variables_alter(&$variables) {

  // Update something programmatically.
  $fullCalendarView =& $variables['#attached']['drupalSettings']['fullCalendarView'];
  if (!empty($fullCalendarView)) {
    foreach ($fullCalendarView as $key => $value) {
      $fullCalendarView[$key]['description'] = 'Something!';
    }
  }
}