You are here

charts.views.inc in Charts 7.2

Same filename and directory in other branches
  1. 6 views/charts.views.inc
  2. 7 views/charts.views.inc

Views integration with Charts.

File

views/charts.views.inc
View source
<?php

/**
 * @file
 * Views integration with Charts.
 */

/**
 * Implementation of hook_views_plugins().
 *
 * Define charts style for Views.
 */
function charts_views_plugins() {
  $plugins = array();
  $plugins['style']['chart'] = array(
    'title' => t('Charts'),
    'help' => t('Displays the content in several Chart styles.'),
    'handler' => 'charts_plugin_style_chart',
    'uses row plugin' => FALSE,
    'uses row class' => FALSE,
    'uses fields' => TRUE,
    'uses options' => TRUE,
    'uses grouping' => TRUE,
    'type' => 'normal',
  );
  $plugins['style']['chart_extension'] = $plugins['style']['chart'];
  $plugins['style']['chart_extension']['type'] = 'chart';
  $plugins['display']['chart'] = array(
    'title' => t('Chart add-on'),
    'admin' => t('Chart add-on'),
    'help' => t('Add chart data to a new or existing chart.'),
    'handler' => 'charts_plugin_display_chart',
    'theme' => 'views_view',
    'register theme' => FALSE,
    'use ajax' => FALSE,
    'use pager' => FALSE,
    'use more' => FALSE,
    'accept attachments' => FALSE,
    'type' => 'chart',
  );
  return $plugins;
}

Functions

Namesort descending Description
charts_views_plugins Implementation of hook_views_plugins().