Projet

Général

Profil

Révision 4eeb3b46

Ajouté par Assos Assos il y a presque 8 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/themes/bootstrap/templates/system/form-element-label.func.php
37 37

  
38 38
  // Extract variables.
39 39
  $output = '';
40
  $title = isset($element['#title']) ? filter_xss_admin($element['#title']) . ' ' : '';
41
  if ($title && ($required = !empty($element['#required']) ? theme('form_required_marker', array('element' => $element)) : '')) {
42
    $title .= $required;
40

  
41
  $title = !empty($element['#title']) ? filter_xss_admin($element['#title']) : '';
42

  
43
  // Only show the required marker if there is an actual title to display.
44
  if ($title && $required = !empty($element['#required']) ? theme('form_required_marker', array('element' => $element)) : '') {
45
    $title .= ' ' . $required;
43 46
  }
47

  
44 48
  $display = isset($element['#title_display']) ? $element['#title_display'] : 'before';
45 49
  $type = !empty($element['#type']) ? $element['#type'] : FALSE;
46 50
  $checkbox = $type && $type === 'checkbox';

Formats disponibles : Unified diff