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/name-full.inc
28 28
    // until one is selected.
29 29
    '#access' => !empty($address['country']),
30 30
  );
31
  // Maxlength is set to 127 so that the name_line still can be created without
32
  // exceeding the char limit from the database.
31 33
  $format['name_block']['first_name'] = array(
32 34
    '#title' => t('First name'),
33 35
    '#size' => 30,
36
    '#maxlength' => 127,
34 37
    '#required' => TRUE,
35 38
    '#attributes' => array(
36 39
      'class' => array('first-name'),
37
      'x-autocompletetype' => 'given-name',
38 40
      'autocomplete' => 'given-name',
39 41
    ),
40 42
  );
41 43
  $format['name_block']['last_name'] = array(
42 44
    '#title' => t('Last name'),
43 45
    '#size' => 30,
46
    '#maxlength' => 127,
44 47
    '#required' => TRUE,
45 48
    '#prefix' => ' ',
46 49
    '#attributes' => array(
47 50
      'class' => array('last-name'),
48
      'x-autocompletetype' => 'family-name',
49 51
      'autocomplete' => 'family-name',
50 52
    ),
51 53
  );

Formats disponibles : Unified diff