summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorParis Liakos2012-10-07 00:24:38 (GMT)
committer Paris Liakos2012-10-07 00:24:38 (GMT)
commit616a307620f294d6463cca8e7fd27044c4c077ad (patch)
tree70d4f5a765b07a2b7d5ac50e848dc74c6c196139
parent49343d2ea84f693120847386c4c11ba17d80dfce (diff)
Issue #1016376 by aaron, arthurf, lsolesen, mrfelton and others: Expose the media types allowed for WYSIWYG variable in the UI
-rw-r--r--includes/media.admin.inc8
1 files changed, 8 insertions, 0 deletions
diff --git a/includes/media.admin.inc b/includes/media.admin.inc
index 069003f..49299ed 100644
--- a/includes/media.admin.inc
+++ b/includes/media.admin.inc
@@ -318,6 +318,14 @@ function media_admin_config_browser($form, &$form_state) {
$form['wysiwyg'][media_variable_name('wysiwyg_browser_plugins')]['#options'][$key] = !empty($plugin['title']) ? $plugin['title'] : $key;
}
+ $form['wysiwyg'][media_variable_name('wysiwyg_allowed_types')] = array(
+ '#type' => 'checkboxes',
+ '#title' => t('Allowed types in WYSIWYG'),
+ '#options' => file_type_get_names(),
+ '#default_value' => media_variable_get('wysiwyg_allowed_types'),
+ );
+ $form['array_filter'] = array('#type' => 'value', '#value' => TRUE);
+
$form['#submit'][] = 'media_admin_config_browser_pre_submit';
return system_settings_form($form);
}