lightbox2.views.inc 997 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. // $Id: lightbox2.views.inc,v 1.1.2.1 2009/09/05 09:52:26 snpower Exp $
  3. /**
  4. * @file
  5. * lightbox2.views.inc
  6. */
  7. /**
  8. * Implementation of hook_views_data()
  9. */
  10. function lightbox2_views_data() {
  11. $data['lightbox2']['table']['group'] = t('Lightbox');
  12. $data['lightbox2']['table']['join'] = array(
  13. '#global' => array(),
  14. );
  15. $data['lightbox2']['lightbox2'] = array(
  16. 'group' => t('Lightbox'),
  17. 'field' => array(
  18. 'title' => t('Lightbox trigger'),
  19. 'help' => t('Provide custom text or link.'),
  20. 'handler' => 'lightbox2_handler_field_lightbox2',
  21. ),
  22. );
  23. return $data;
  24. }
  25. /**
  26. * Implementation of hook_views_handlers() to register all of the basic handlers
  27. * views uses.
  28. */
  29. function lightbox2_views_handlers() {
  30. return array(
  31. 'info' => array(
  32. 'path' => drupal_get_path('module', 'lightbox2'),
  33. ),
  34. 'handlers' => array(
  35. 'lightbox2_handler_field_lightbox2' => array(
  36. 'parent' => 'views_handler_field',
  37. ),
  38. ),
  39. );
  40. }