You are here

function views_calc_views_plugins in Views Calc 6

Same name and namespace in other branches
  1. 6.3 views_calc.views.inc \views_calc_views_plugins()
  2. 7 views_calc.views.inc \views_calc_views_plugins()

Implementation of hook_views_plugins

File

./views_calc.views.inc, line 56

Code

function views_calc_views_plugins() {
  $path = drupal_get_path('module', 'views_calc');
  $views_path = drupal_get_path('module', 'views');
  require_once "./{$path}/theme.inc";
  $data = array(
    'module' => 'views_calc',
    // This just tells our themes are elsewhere.
    'style' => array(
      // Style plugin for the navigation.
      'views_calc' => array(
        'title' => t('Views Calc Table'),
        'help' => t('Creates a table with column calculations.'),
        'handler' => 'views_calc_table',
        'path' => $path,
        'parent' => 'table',
        'theme' => 'views_calc_table',
        'theme file' => 'theme.inc',
        'theme path' => "{$path}",
        'uses row plugin' => FALSE,
        'uses fields' => TRUE,
        'uses options' => TRUE,
        'type' => 'normal',
        'even empty' => FALSE,
      ),
    ),
  );
  return $data;
}