You are here

ldap_views.module in Lightweight Directory Access Protocol (LDAP) 7.2

Same filename and directory in other branches
  1. 8.2 ldap_views/ldap_views.module
  2. 7 ldap_views/ldap_views.module

File

ldap_views/ldap_views.module
View source
<?php

/**
 * @file
 */

/**
 * Implements hook_views_api().
 */
function ldap_views_views_api() {
  return [
    'api' => 3,
    'path' => drupal_get_path('module', 'ldap_views'),
  ];
}

/**
 *
 */
function ldap_views_get_qid(&$view) {
  $current_display = $view->display[$view->current_display];
  return isset($current_display->display_options['query']['options']['qid']) ? $current_display->display_options['query']['options']['qid'] : $current_display->handler->default_display->display->display_options['query']['options']['qid'];
}

Functions