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.views_default.inc
2 2

  
3 3
/**
4 4
 * @file
5
 * Defines a default ldap_view
5
 * Defines a default ldap_view.
6 6
 */
7 7

  
8 8
/**
......
12 12
  /*
13 13
   * View 'ad_users'
14 14
   */
15
  $view = new view;
15
  $view = new view();
16 16
  $view->name = 'ad_users_example';
17 17
  $view->description = 'Users from AD. You must define a ldap data source whith ad_users identifier, and mail, name and samaccountname attributes';
18 18
  $view->tag = 'default';
......
33 33
  $handler->display->display_options['pager']['type'] = 'full';
34 34
  $handler->display->display_options['pager']['options']['items_per_page'] = '10';
35 35
  $handler->display->display_options['style_plugin'] = 'table';
36
  $handler->display->display_options['style_options']['columns'] = array(
36
  $handler->display->display_options['style_options']['columns'] = [
37 37
    'attribute' => 'attribute',
38 38
    'attribute_1' => 'attribute_1',
39 39
    'attribute_2' => 'attribute_2',
40 40
    'attribute_3' => 'attribute_3',
41 41
    'attribute_4' => 'attribute_4',
42
  );
42
  ];
43 43
  $handler->display->display_options['style_options']['default'] = '-1';
44
  $handler->display->display_options['style_options']['info'] = array(
45
    'attribute' => array(
44
  $handler->display->display_options['style_options']['info'] = [
45
    'attribute' => [
46 46
      'align' => '',
47 47
      'separator' => '',
48
    ),
49
    'attribute_1' => array(
48
    ],
49
    'attribute_1' => [
50 50
      'align' => '',
51 51
      'separator' => '',
52
    ),
53
    'attribute_2' => array(
52
    ],
53
    'attribute_2' => [
54 54
      'align' => '',
55 55
      'separator' => '',
56
    ),
57
    'attribute_3' => array(
56
    ],
57
    'attribute_3' => [
58 58
      'align' => '',
59 59
      'separator' => '',
60
    ),
61
    'attribute_4' => array(
60
    ],
61
    'attribute_4' => [
62 62
      'align' => '',
63 63
      'separator' => '',
64
    ),
65
  );
64
    ],
65
  ];
66 66
  $handler->display->display_options['style_options']['override'] = 1;
67 67
  $handler->display->display_options['style_options']['sticky'] = 0;
68 68
  $handler->display->display_options['style_options']['empty_table'] = 0;

Formats disponibles : Unified diff