-
Notifications
You must be signed in to change notification settings - Fork 0
/
twilio.views.inc
47 lines (46 loc) · 1.11 KB
/
twilio.views.inc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php
/**
* @file
* Views integration.
*/
/**
* Implements hook_views_data().
*/
function twilio_views_data() {
$data['twilio_user']['table']['group'] = t('Twilio');
$data['twilio_user']['table']['join'] = array(
'users' => array(
'left_field' => 'uid',
'field' => 'uid',
),
);
$data['twilio_user']['number'] = array(
'title' => t('Phone number'),
'help' => t('The phone number associated with the user account.'),
'field' => array(
'handler' => 'views_handler_field',
'click sortable' => TRUE,
),
'filter' => array(
'handler' => 'views_handler_filter_numeric',
),
'sort' => array(
'handler' => 'views_handler_sort',
),
);
$data['twilio_user']['country'] = array(
'title' => t('Country code'),
'help' => t('The country code associated with the user account.'),
'field' => array(
'handler' => 'views_handler_field',
'click sortable' => TRUE,
),
'filter' => array(
'handler' => 'views_handler_filter_numeric',
),
'sort' => array(
'handler' => 'views_handler_sort',
),
);
return $data;
}