contact.views.inc 357 B

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