1 |
85ad3d82
|
Assos Assos
|
<?php
|
2 |
|
|
/**
|
3 |
|
|
* @file
|
4 |
|
|
* Provide views data and handlers for privatemsg.module
|
5 |
|
|
*/
|
6 |
|
|
|
7 |
|
|
/**
|
8 |
|
|
* Implements hook_views_data().
|
9 |
|
|
*/
|
10 |
|
|
function privatemsg_views_data() {
|
11 |
|
|
$data['users']['privatemsg_link'] = array(
|
12 |
|
|
'group' => t('Privatemsg'),
|
13 |
|
|
'real field' => 'uid',
|
14 |
|
|
'title' => t('Send message'),
|
15 |
|
|
'field' => array(
|
16 |
|
|
'title' => t('Send Privatemsg link'),
|
17 |
|
|
'help' => t('Displays a link to send a private message to a user.'),
|
18 |
|
|
'handler' => 'views_handler_field_privatemsg_link',
|
19 |
|
|
),
|
20 |
|
|
);
|
21 |
|
|
return $data;
|
22 |
|
|
}
|