Projet

Général

Profil

Révision 3acd948f

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

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/media_youtube/includes/media_youtube.formatters.inc
29 29
      'showinfo' => TRUE,
30 30
      'theme' => 'dark',
31 31
      'captions' => FALSE,
32
      'controls' => FALSE,
32 33
    ),
33 34
    'view callback' => 'media_youtube_file_formatter_video_view',
34 35
    'settings callback' => 'media_youtube_file_formatter_video_settings',
......
66 67
    // Fake a default for attributes so the ternary doesn't choke.
67 68
    $display['settings']['attributes'] = array();
68 69

  
69
    foreach (array('width', 'height', 'autohide', 'autoplay', 'color', 'enablejsapi', 'loop', 'modestbranding', 'nocookie', 'origin', 'protocol', 'protocol_specify', 'rel', 'showinfo', 'theme', 'attributes', 'captions') as $setting) {
70
    foreach (array('width', 'height', 'autohide', 'autoplay', 'color', 'enablejsapi', 'loop', 'modestbranding', 'nocookie', 'origin', 'protocol', 'protocol_specify', 'rel', 'showinfo', 'theme', 'attributes', 'captions','controls') as $setting) {
70 71
      $element['#options'][$setting] = isset($file->override[$setting]) ? $file->override[$setting] : $display['settings'][$setting];
71 72
    }
72 73

  
......
146 147
    '#type' => 'checkbox',
147 148
    '#default_value' => $settings['loop'],
148 149
  );
150
  $element['controls'] = array(
151
    '#title' => t('Show Controls'),
152
    '#type' => 'checkbox',
153
    '#default_value' => $settings['controls'],
154
  );
149 155

  
150 156
  // Note: make sure the positive/negative language lines up with option
151 157
  // processing in media_youtube.theme.inc.

Formats disponibles : Unified diff