You are here

fullcalendar_view.services.api.php in Fullcalendar View 8.2

Hooks and API provided by the "Full Calendar View Plugin" module.

File

fullcalendar_view.services.api.php
View source
<?php

/**
 * @file
 * Hooks and API provided by the "Full Calendar View Plugin" module.
 */

/**
 * @addtogroup hooks
 * @{
 */

/**
 * Allows to alter the $variables data before rendering.
 *
 * @param $variables
 */
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!';
    }
  }
}

/**
 * @} End of "addtogroup hooks".
 */

Functions

Namesort descending Description
hook_fullcalendar_view_variables_alter Allows to alter the $variables data before rendering.