You are here

function contact_views_data_alter in Views (for Drupal 7) 7.3

Same name and namespace in other branches
  1. 8.3 modules/contact.views.inc \contact_views_data_alter()

Implements hook_views_data_alter().

File

modules/contact.views.inc, line 13
Provide views data and handlers for contact.module.

Code

function contact_views_data_alter(&$data) {
  $data['users']['contact'] = array(
    'field' => array(
      'title' => t('Link to contact page'),
      'help' => t('Provide a simple link to the user contact page.'),
      'handler' => 'views_handler_field_contact_link',
    ),
  );
}