function flot_views_views_plugins in Flot 7
Implements hook_views_plugins().
File
- flot_views/
views/ flot_views.views.inc, line 38 - Provides view integration for Flot.
Code
function flot_views_views_plugins() {
return array(
'style' => array(
'flot_fields' => array(
'title' => t('Flot fields'),
'help' => t('Displays the result set as a flot graph, using regular fields.'),
'handler' => 'flot_fields_views_plugin_style',
'theme' => 'flot_views_style',
'theme path' => drupal_get_path('module', 'flot_views') . '/views',
'path' => drupal_get_path('module', 'flot_views') . '/views',
'even empty' => TRUE,
'uses row plugin' => FALSE,
'uses fields' => TRUE,
'uses options' => TRUE,
'type' => 'normal',
),
'flot' => array(
'title' => t('Flot'),
'help' => t('Displays the result set as a flot graph.'),
'handler' => 'flot_views_plugin_style',
'theme' => 'flot_views_style',
'theme path' => drupal_get_path('module', 'flot_views') . '/views',
'path' => drupal_get_path('module', 'flot_views') . '/views',
'even empty' => TRUE,
'uses row plugin' => FALSE,
'uses fields' => TRUE,
'uses options' => TRUE,
'type' => 'normal',
),
'flot_summary' => array(
'parent' => 'flot',
'title' => t('Flot'),
'help' => t('Displays the default summary as a flot graph.'),
'handler' => 'flot_views_plugin_summary_style',
'path' => drupal_get_path('module', 'flot_views') . '/views',
'theme' => 'flot_views_summary_style',
'theme path' => drupal_get_path('module', 'flot_views') . '/views',
'type' => 'summary',
// only shows up as a summary style
'uses options' => TRUE,
),
),
);
}