views_field_calc.views.inc

  1. cis7 sites/all/modules/local_sandboxes/views_field_calc/views_field_calc.views.inc
  2. cis7 profiles/cis/modules/sandbox/views_field_calc/views_field_calc.views.inc

Views plugin.

Functions

File

sites/all/modules/local_sandboxes/views_field_calc/views_field_calc.views.inc
View source
  1. <?php
  2. /**
  3. * @file
  4. * Views plugin.
  5. */
  6. /**
  7. * Implements hook_views_plugins().
  8. */
  9. function views_field_calc_views_plugins() {
  10. $path = drupal_get_path('module', 'views_field_calc');
  11. $views_path = drupal_get_path('module', 'views');
  12. require_once DRUPAL_ROOT . '/' . $path . '/views_field_calc.theme.inc';
  13. $data = array(
  14. 'module' => 'views_field_calc', // This just tells our themes are elsewhere.
  15. 'style' => array(
  16. // Style plugin for the navigation.
  17. 'views_field_calc' => array(
  18. 'title' => t('Views Field Calc Table'),
  19. 'help' => t('Creates a table with column calculations using fields.'),
  20. 'handler' => 'views_field_calc_table',
  21. 'path' => $path,
  22. 'parent' => 'table',
  23. 'theme' => 'views_field_calc_table',
  24. 'theme file' => 'views_field_calc.theme.inc',
  25. 'theme path' => "$path",
  26. 'uses row plugin' => FALSE,
  27. 'uses fields' => TRUE,
  28. 'uses options' => TRUE,
  29. 'type' => 'normal',
  30. 'even empty' => FALSE,
  31. ),
  32. ),
  33. );
  34. return $data;
  35. }