You are here

function _calendar_views_style_plugins in Calendar 5

Same name and namespace in other branches
  1. 5.2 calendar_admin.inc \_calendar_views_style_plugins()

Implementation of hook_views_style_plugins()

1 call to _calendar_views_style_plugins()
calendar_views_style_plugins in ./calendar.module
Implementation of hook_views_style_plugins()

File

./calendar_admin.inc, line 319
This file contains administrative functions used only when setting up the calendar and views_hooks() that are called infrequently and cached. No need to parse all this code the rest of the time.

Code

function _calendar_views_style_plugins() {
  $plugins = array();
  $types = array(
    'calendar' => t('Calendar'),
  );
  foreach ($types as $name => $type) {
    $plugins[$name] = array(
      'name' => $type,
      'theme' => 'calendar_view_calendar',
      'summary_theme' => 'calendar_view_summary',
      'validate' => 'calendar_views_validate',
      'needs_fields' => TRUE,
      'needs_table_header' => FALSE,
      'even_empty' => TRUE,
    );
  }
  return $plugins;
}