You are here

fullcalendar.api.php in FullCalendar 6.2

Hooks provided by the FullCalendar module.

File

fullcalendar.api.php
View source
<?php

/**
 * @file
 * Hooks provided by the FullCalendar module.
 */

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

/**
 * Constructs CSS classes for an node.
 *
 * @param $node
 *   Object representing the node.
 *
 * @return
 *   Array of CSS classes.
 */
function hook_fullcalendar_classes($node) {

  // Add the node type as a class.
  return array(
    $node->type,
  );
}

/**
 * Alter the CSS classes for an node.
 *
 * @param $classes
 *   Array of CSS classes.
 * @param $node
 *   Object representing the node.
 *
 */
function hook_fullcalendar_classes_alter(&$classes, $node) {

  // Remove all classes set by modules.
  $classes = array();
}

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

Functions

Namesort descending Description
hook_fullcalendar_classes Constructs CSS classes for an node.
hook_fullcalendar_classes_alter Alter the CSS classes for an node.