1 |
85ad3d82
|
Assos Assos
|
<?php
|
2 |
|
|
// $Id: lightbox2.views.inc,v 1.1.2.1 2009/09/05 09:52:26 snpower Exp $
|
3 |
|
|
|
4 |
|
|
/**
|
5 |
|
|
* @file
|
6 |
|
|
* lightbox2.views.inc
|
7 |
|
|
*/
|
8 |
|
|
|
9 |
|
|
/**
|
10 |
|
|
* Implementation of hook_views_data()
|
11 |
|
|
*/
|
12 |
|
|
function lightbox2_views_data() {
|
13 |
|
|
|
14 |
|
|
$data['lightbox2']['table']['group'] = t('Lightbox');
|
15 |
|
|
|
16 |
|
|
$data['lightbox2']['table']['join'] = array(
|
17 |
|
|
'#global' => array(),
|
18 |
|
|
);
|
19 |
|
|
|
20 |
|
|
$data['lightbox2']['lightbox2'] = array(
|
21 |
|
|
'group' => t('Lightbox'),
|
22 |
|
|
'field' => array(
|
23 |
|
|
'title' => t('Lightbox trigger'),
|
24 |
|
|
'help' => t('Provide custom text or link.'),
|
25 |
|
|
'handler' => 'lightbox2_handler_field_lightbox2',
|
26 |
|
|
),
|
27 |
|
|
);
|
28 |
|
|
|
29 |
|
|
return $data;
|
30 |
|
|
}
|
31 |
|
|
|
32 |
|
|
/**
|
33 |
|
|
* Implementation of hook_views_handlers() to register all of the basic handlers
|
34 |
|
|
* views uses.
|
35 |
|
|
*/
|
36 |
|
|
function lightbox2_views_handlers() {
|
37 |
|
|
return array(
|
38 |
|
|
'info' => array(
|
39 |
|
|
'path' => drupal_get_path('module', 'lightbox2'),
|
40 |
|
|
),
|
41 |
|
|
'handlers' => array(
|
42 |
|
|
'lightbox2_handler_field_lightbox2' => array(
|
43 |
|
|
'parent' => 'views_handler_field',
|
44 |
|
|
),
|
45 |
|
|
),
|
46 |
|
|
);
|
47 |
|
|
} |