Projet

Général

Profil

Révision 32700c57

Ajouté par Assos Assos il y a environ 5 ans

Weekly update of contrib modules

Voir les différences:

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

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

Formats disponibles : Unified diff