tode.views.inc 892 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /**
  3. * Implements hook_views_data().
  4. */
  5. // function tode_views_data() {
  6. // // Code goes here. See example at http://views.doc.logrus.com/group__views__hooks.html#g227057901681e4a33e33c199c7a8c989
  7. //
  8. // $data['node']['tode_parent'] = array(
  9. // 'group' => t('tode'),
  10. // 'title' => t('Tode'),
  11. // 'help' => t('Filtrer with tode parent term.'), // The help that appears on the UI,
  12. // // 'real field' => 'field_pv_value',
  13. // 'filter' => array(
  14. // 'handler' => 'tode_views_handler_parent_filter',
  15. // ),
  16. // );
  17. //
  18. // }
  19. function tode_views_data_alter(&$data) {
  20. $data['tid']['tode_parent'] = array(
  21. 'title' => t('Tode parent'),
  22. 'group' => 'Tode',
  23. 'help' => t('Parent term of tode field'),
  24. 'real field' => 'field_tode_program',
  25. 'filter' => array(
  26. 'handler' => 'tode_views_handler_parent_filter',
  27. ),
  28. );
  29. }