1 |
85ad3d82
|
Assos Assos
|
<?php
|
2 |
|
|
|
3 |
|
|
/**
|
4 |
|
|
* Implements hook_views_api().
|
5 |
|
|
*/
|
6 |
|
|
function ldap_views_views_api() {
|
7 |
|
|
return array(
|
8 |
|
|
'api' => 3,
|
9 |
|
|
'path' => drupal_get_path('module', 'ldap_views'),
|
10 |
|
|
);
|
11 |
|
|
}
|
12 |
|
|
|
13 |
|
|
function ldap_views_get_qid(&$view) {
|
14 |
|
|
$current_display = $view->display[$view->current_display];
|
15 |
|
|
return isset($current_display->display_options['query']['options']['qid']) ?
|
16 |
|
|
$current_display->display_options['query']['options']['qid'] :
|
17 |
|
|
$current_display->handler->default_display->display->display_options['query']['options']['qid'];
|
18 |
|
|
} |