You are here

fullcalendar.views_default.inc in FullCalendar 7

Provides a default view on behalf of the FullCalendar module.

File

fullcalendar.views_default.inc
View source
<?php

/**
 * @file
 * Provides a default view on behalf of the FullCalendar module.
 */

/**
 * Implements hook_views_default_views().
 */
function fullcalendar_views_default_views() {
  $views = array();
  $view = new view();
  $view->name = 'fullcalendar';
  $view->base_table = 'node';
  $view->core = 0;
  $view->api_version = '3.0-alpha1';
  $view->disabled = FALSE;

  /* Display: Defaults */
  $handler = $view
    ->new_display('default', 'Defaults', 'default');
  $handler->display->display_options['access']['type'] = 'none';
  $handler->display->display_options['cache']['type'] = 'none';
  $handler->display->display_options['query']['type'] = 'views_query';
  $handler->display->display_options['exposed_form']['type'] = 'basic';
  $handler->display->display_options['pager']['type'] = 'none';
  $handler->display->display_options['pager']['options']['offset'] = '0';
  $handler->display->display_options['style_plugin'] = 'fullcalendar';
  $handler->display->display_options['style_options']['modules']['fc_theme'] = 1;
  $handler->display->display_options['row_plugin'] = 'fullcalendar_node';

  /* Filter: Node: Published */
  $handler->display->display_options['filters']['status']['id'] = 'status';
  $handler->display->display_options['filters']['status']['table'] = 'node';
  $handler->display->display_options['filters']['status']['field'] = 'status';
  $handler->display->display_options['filters']['status']['value'] = '1';

  /* Display: FullCalendar */
  $handler = $view
    ->new_display('fullcalendar', 'FullCalendar', 'fullcalendar');
  $handler->display->display_options['pager']['type'] = 'none';
  $handler->display->display_options['path'] = 'fullcalendar';
  $views[$view->name] = $view;
  return $views;
}

Functions