Projet

Général

Profil

Révision fbb05e21

Ajouté par Assos Assos il y a environ 9 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/addressfield/plugins/format/address.inc
38 38
    '#tag' => 'div',
39 39
    '#attributes' => array(
40 40
      'class' => array('thoroughfare'),
41
      'x-autocompletetype' => 'address-line1',
42 41
      'autocomplete' => 'address-line1',
43 42
    ),
44 43
    '#size' => 30,
44
    '#maxlength' => 255,
45 45
    '#required' => TRUE,
46 46
  );
47 47
  $format['street_block']['premise'] = array(
......
49 49
    '#tag' => 'div',
50 50
    '#attributes' => array(
51 51
      'class' => array('premise'),
52
      'x-autocompletetype' => 'address-line2',
53 52
      'autocomplete' => 'address-line2',
54 53
    ),
55 54
    '#size' => 30,
55
    '#maxlength' => 255,
56 56
  );
57 57
  $format['locality_block'] = array(
58 58
    '#type' => 'addressfield_container',
......
60 60
      'class' => array('addressfield-container-inline', 'locality-block', 'country-' . $address['country']),
61 61
    ),
62 62
    '#weight' => 50,
63
    '#maxlength' => 255,
63 64
  );
64 65
  $format['locality_block']['#attached']['css'][] = drupal_get_path('module', 'addressfield') . '/addressfield.css';
65 66
  $format['locality_block']['postal_code'] = array(
......
67 68
    '#required' => in_array('postal_code', $address_format['required_fields']),
68 69
    '#access' => in_array('postal_code', $address_format['used_fields']),
69 70
    '#size' => 10,
71
    '#maxlength' => 255,
70 72
    '#attributes' => array(
71 73
      'class' => array('postal-code'),
72
      'x-autocompletetype' => 'postal-code',
73 74
      'autocomplete' => 'postal-code',
74 75
    ),
75 76
  );
......
78 79
    '#required' => in_array('dependent_locality', $address_format['required_fields']),
79 80
    '#access' => in_array('dependent_locality', $address_format['used_fields']),
80 81
    '#size' => 25,
82
    '#maxlength' => 255,
81 83
    '#tag' => 'div',
82 84
    '#attributes' => array(
83
      'class' => array('dependent-locality')
85
      'class' => array('dependent-locality'),
86
      'autocomplete' => '"address-level3',
84 87
    ),
85 88
    // Most formats place this field in its own row.
86 89
    '#suffix' => $clearfix,
......
90 93
    '#required' => in_array('locality', $address_format['required_fields']),
91 94
    '#access' => in_array('locality', $address_format['used_fields']),
92 95
    '#size' => 30,
96
    '#maxlength' => 255,
93 97
    '#prefix' => ' ',
94 98
    '#attributes' => array(
95 99
      'class' => array('locality'),
96
      'x-autocompletetype' => 'locality',
97
      'autocomplete' => 'locality',
100
      'autocomplete' => '"address-level2',
98 101
    ),
99 102
  );
100 103
  $format['locality_block']['administrative_area'] = array(
......
103 106
    '#access' => in_array('administrative_area', $address_format['used_fields']),
104 107
    '#empty_value' => '',
105 108
    '#size' => 10,
109
    '#maxlength' => 255,
106 110
    '#prefix' => ' ',
107 111
    '#render_option_value' => $address_format['render_administrative_area_value'],
108 112
    '#attributes' => array(
109 113
      'class' => array('state'),
110
      'x-autocompletetype' => 'region',
111
      'autocomplete' => 'region',
114
      'autocomplete' => 'address-level1',
112 115
    ),
113 116
  );
114 117
  $format['country'] = array(
......
118 121
    '#required' => TRUE,
119 122
    '#attributes' => array(
120 123
      'class' => array('country'),
121
      'x-autocompletetype' => 'country',
122 124
      'autocomplete' => 'country',
123 125
    ),
124 126
    '#weight' => 100,
......
166 168
      '#tag' => NULL,
167 169
      '#attributes' => array('class' => array('premise')),
168 170
      '#size' => 20,
171
      '#maxlength' => 255,
169 172
      '#prefix' => ', ',
170 173
    );
171 174
    $format['locality_block']['locality']['#suffix'] = ' - ';

Formats disponibles : Unified diff