function contact_views_data_alter

Same name in other branches
  1. 9 core/modules/contact/contact.views.inc \contact_views_data_alter()
  2. 8.9.x core/modules/contact/contact.views.inc \contact_views_data_alter()
  3. 11.x core/modules/contact/contact.views.inc \contact_views_data_alter()

Implements hook_views_data_alter().

File

core/modules/contact/contact.views.inc, line 11

Code

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',
        ],
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.