You are here

function fullcalendar_views_default_views in FullCalendar 7

Same name and namespace in other branches
  1. 6.2 includes/views/fullcalendar.views_default.inc \fullcalendar_views_default_views()

Implements hook_views_default_views().

File

./fullcalendar.views_default.inc, line 11
Provides a default view on behalf of the FullCalendar module.

Code

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;
}