contact.views.inc in Drupal 10
Same filename and directory in other branches
Provide views data for contact.module.
File
core/modules/contact/contact.views.incView source
<?php
/**
* @file
* Provide views data for contact.module.
*/
/**
* Implements hook_views_data_alter().
*/
function contact_views_data_alter(&$data) {
$data['users']['contact'] = [
'field' => [
'title' => t('Contact link'),
'help' => t('Provide a simple link to the user contact page.'),
'id' => 'contact_link',
],
];
}
Functions
Name | Description |
---|---|
contact_views_data_alter | Implements hook_views_data_alter(). |