Projet

Général

Profil

Paste
Télécharger (550 octets) Statistiques
| Branche: | Révision:

root / drupal7 / sites / all / modules / ldap / ldap_views / ldap_views.module @ bc175c27

1
<?php
2

    
3
/**
4
 * @file
5
 */
6

    
7
/**
8
 * Implements hook_views_api().
9
 */
10
function ldap_views_views_api() {
11
  return array(
12
    'api' => 3,
13
    'path' => drupal_get_path('module', 'ldap_views'),
14
  );
15
}
16

    
17
function ldap_views_get_qid(&$view) {
18
    $current_display = $view->display[$view->current_display];
19
    return isset($current_display->display_options['query']['options']['qid']) ?
20
      $current_display->display_options['query']['options']['qid'] :
21
      $current_display->handler->default_display->display->display_options['query']['options']['qid'];
22
}