Projet

Général

Profil

Révision 02a0babc

Ajouté par Assos Assos il y a presque 7 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/media/modules/media_wysiwyg/media_wysiwyg.module
120 120
  $tagmap = array();
121 121

  
122 122
  foreach (array('value', 'summary') as $column) {
123
    if (isset($element[$column])) {
123
    if (isset($element[$column]['#value'])) {
124 124
      $tagmap += _media_wysiwyg_generate_tagMap($element[$column]['#value']);
125 125
    }
126 126
  }
......
281 281

  
282 282
  $options = array();
283 283
  foreach(field_info_field_types() as $key => $type) {
284
    $options[$key] = $type['label'];
284
    $options[$key] = (!empty($type['label']))? $type['label'] : ucfirst(str_replace("_"," ",$key));
285 285
  }
286 286
  asort($options);
287 287
  $form['wysiwyg']['media_wysiwyg_wysiwyg_override_field_types'] = array(
......
319 319
    '#default_value' => variable_get('media_wysiwyg_external_link', FALSE),
320 320
    '#description' => t('If checked there will be a new field when embedding that will allow users to link to the media to urls'),
321 321
  );
322

  
323
  $form['wysiwyg']['media_wysiwyg_remove_media_class'] = array(
324
    '#type' => 'checkbox',
325
    '#title' => t('Remove the ".media" class from embedded media'),
326
    '#description' => t('If checked, the ".media" class will be removed from embedded media. Particularlly for sites using Bootstrap, the ".media" class can cause CSS to be unexpectedly applied to embedded media.'),
327
    '#default_value' => variable_get('media_wysiwyg_remove_media_class', FALSE),
328
  );
329

  
322 330
  $form['#submit'][] = 'media_wysiwyg_admin_config_browser_pre_submit';
323 331
}
324 332

  

Formats disponibles : Unified diff