You are here

function hook_fullcalendar_options_definition in FullCalendar 7.2

Return an array to be added to FullCalendar's Views option definition.

Return value

array An associative array in the form expected by Views option_definition(). For usage in this context, it will generally be an associative array keyed by the module name, containing an associative array with the key 'contains', which contains an associative array with the following key-value pairs:

  • default: The default value for this item.
  • bool: (optional) Whether or not the value is a Boolean.

See also

views_object::option_definition()

3 functions implement hook_fullcalendar_options_definition()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

colorbox_fullcalendar_options_definition in fullcalendar_options/includes/colorbox.fullcalendar.inc
Implements hook_fullcalendar_options_definition().
fullcalendar_fullcalendar_options_definition in includes/fullcalendar.fullcalendar.inc
Implements hook_fullcalendar_options_definition().
fullcalendar_options_fullcalendar_options_definition in fullcalendar_options/includes/fullcalendar_options.fullcalendar.inc
Implements hook_fullcalendar_options_definition().
1 invocation of hook_fullcalendar_options_definition()
fullcalendar_plugin_style_fullcalendar::option_definition in includes/views/plugins/fullcalendar_plugin_style_fullcalendar.inc
Information about options for all kinds of purposes will be held here.

File

./fullcalendar.api.php, line 164
Hooks provided by the FullCalendar module.

Code

function hook_fullcalendar_options_definition() {
  $options['colorbox']['contains'] = array(
    'colorbox' => array(
      'default' => FALSE,
      'bool' => TRUE,
    ),
    'colorboxIFrame' => array(
      'default' => FALSE,
      'bool' => TRUE,
    ),
    'colorboxClass' => array(
      'default' => '#content',
    ),
    'colorboxWidth' => array(
      'default' => '80%',
    ),
    'colorboxHeight' => array(
      'default' => '80%',
    ),
  );
  return $options;
}