contact.views.inc 450 B

123456789101112131415161718192021
  1. <?php
  2. /**
  3. * @file
  4. * Provide views data and handlers for contact.module.
  5. *
  6. * @ingroup views_module_handlers
  7. */
  8. /**
  9. * Implements hook_views_data_alter().
  10. */
  11. function contact_views_data_alter(&$data) {
  12. $data['users']['contact'] = array(
  13. 'field' => array(
  14. 'title' => t('Link to contact page'),
  15. 'help' => t('Provide a simple link to the user contact page.'),
  16. 'handler' => 'views_handler_field_contact_link',
  17. ),
  18. );
  19. }