Révision b3ab3446
Ajouté par Assos Assos il y a plus de 7 ans
drupal7/sites/all/modules/media/modules/media_wysiwyg/includes/media_wysiwyg.pages.inc | ||
---|---|---|
83 | 83 |
they are inserted into an editor.') |
84 | 84 |
); |
85 | 85 |
|
86 |
// If necessary, display the alignment widget. |
|
87 |
if (variable_get('media_wysiwyg_alignment', FALSE)) { |
|
88 |
$align_default = empty($query_fields['alignment']) ? '' : $query_fields['alignment']; |
|
89 |
$align_options = array( |
|
90 |
'' => t('None'), |
|
91 |
'left' => t('Left'), |
|
92 |
'right' => t('Right'), |
|
93 |
'center' => t('Center'), |
|
94 |
); |
|
95 |
if (!isset($align_options[$align_default])) { |
|
96 |
// Safety code for a malformed token. |
|
97 |
$align_default = ''; |
|
98 |
} |
|
99 |
$form['options']['alignment'] = array( |
|
100 |
'#type' => 'select', |
|
101 |
'#title' => t('Alignment'), |
|
102 |
'#options' => $align_options, |
|
103 |
'#description' => t('Choose how you would like the media to be aligned with surrounding content.'), |
|
104 |
'#default_value' => $align_default, |
|
105 |
); |
|
106 |
} |
|
107 |
|
|
86 | 108 |
// Add fields from the file, so that we can override them if necessary. |
87 | 109 |
$form['options']['fields'] = array(); |
88 | 110 |
foreach ($fields as $field_name => $field_value) { |
Formats disponibles : Unified diff
Weekly update of contrib modules