You are here

function views_calc_views_plugins in Views Calc 7

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

Implements hook_views_plugins().

File

./views_calc.views.inc, line 37

Code

function views_calc_views_plugins() {
  $path = drupal_get_path('module', 'views_calc');
  $views_path = drupal_get_path('module', 'views');
  require_once DRUPAL_ROOT . '/' . "./{$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;
}