contact.views.inc

  1. 3.x modules/contact.views.inc
  2. 2.x modules/contact.views.inc

Provide views data and handlers for contact.module

File

modules/contact.views.inc
View source
  1. <?php
  2. /**
  3. * @file
  4. * Provide views data and handlers for contact.module
  5. */
  6. function contact_views_data() {
  7. $data['users']['contact'] = array(
  8. 'field' => array(
  9. 'title' => t('Link to contact page'),
  10. 'help' => t('Provide a simple link to the user contact page.'),
  11. 'handler' => 'views_handler_field_contact_link',
  12. ),
  13. );
  14. return $data;
  15. }
  16. /**
  17. * Implementation of hook_views_handlers() to register all of the basic handlers
  18. * views uses.
  19. */
  20. function contact_views_handlers() {
  21. return array(
  22. 'info' => array(
  23. 'path' => drupal_get_path('module', 'views') . '/modules/contact',
  24. ),
  25. 'handlers' => array(
  26. 'views_handler_field_contact_link' => array(
  27. 'parent' => 'views_handler_field_user_link',
  28. ),
  29. ),
  30. );
  31. }