| 1 |
<?php
|
| 2 |
//$Id$
|
| 3 |
/**
|
| 4 |
* @file
|
| 5 |
* Provide views data and handlers for contact.module
|
| 6 |
*/
|
| 7 |
|
| 8 |
function contact_views_data() {
|
| 9 |
$data['users']['contact'] = array(
|
| 10 |
'field' => array(
|
| 11 |
'title' => t('Link to contact page'),
|
| 12 |
'help' => t('Provide a simple link to the user contact page.'),
|
| 13 |
'handler' => 'views_handler_field_contact_link',
|
| 14 |
),
|
| 15 |
);
|
| 16 |
return $data;
|
| 17 |
}
|
| 18 |
/**
|
| 19 |
* Implementation of hook_views_handlers() to register all of the basic handlers
|
| 20 |
* views uses.
|
| 21 |
*/
|
| 22 |
function contact_views_handlers() {
|
| 23 |
return array(
|
| 24 |
'info' => array(
|
| 25 |
'path' => drupal_get_path('module', 'views') . '/modules/contact',
|
| 26 |
),
|
| 27 |
'handlers' => array(
|
| 28 |
'views_handler_field_contact_link' => array(
|
| 29 |
'parent' => 'views_handler_field_user_link',
|
| 30 |
),
|
| 31 |
),
|
| 32 |
);
|
| 33 |
}
|