Projet

Général

Profil

Révision b3ab3446

Ajouté par Assos Assos il y a plus de 7 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/media/includes/media.fields.inc
433 433
  $element = $variables['element'];
434 434
  $output = '';
435 435

  
436
  // Merge provided attributes with existing ones.
436 437
  // The "form-media" class is required for proper Ajax functionality.
437
  $output .= '<div class="media-widget form-media clearfix">';
438
  $attributes = array(
439
    'class' => array("media-widget", "form-media", "clearfix"),
440
  );
441
  if (!empty($element['#attributes'])) {
442
    $attributes = array_merge_recursive($attributes, $element['#attributes']);
443
  }
444
  if (!empty($element['#id'])) {
445
    $attributes = array_merge_recursive($attributes, array('id' => $element['#id'] . '--widget'));
446
  }
447

  
448
  // Render attributes into div in one go.
449
  $output .= '<div ' . drupal_attributes($attributes) . '>';
438 450
  $output .= drupal_render_children($element);
439 451
  $output .= '</div>';
440 452

  

Formats disponibles : Unified diff