diff --git a/core/modules/media/media.module b/core/modules/media/media.module index 4ea11c033f..857b79cfb7 100644 --- a/core/modules/media/media.module +++ b/core/modules/media/media.module @@ -116,23 +116,23 @@ function template_preprocess_media(array &$variables) { } /** - * Implements hook_form_FORM_ID_alter() for 'field_ui_field_storage_add_form'. + * Implements hook_form_FORM_ID_alter(). */ function media_form_field_ui_field_storage_add_form_alter(array &$form) { $reference = (string) t('Reference'); $general = (string) t('General'); - // Set and remove the image option + // Move the "file" option to the "General" optgroup. if (isset($form['add']['new_storage_type']['#options'][$reference]['image'])) { $image = $form['add']['new_storage_type']['#options'][$reference]['image']; $form['add']['new_storage_type']['#options'][$general]['image'] = $image; unset($form['add']['new_storage_type']['#options'][$reference]['image']); } - // Set and remove the file option + // Move the "file" option to the "General" optgroup. if (isset($form['add']['new_storage_type']['#options'][$reference]['file'])) { $file = $form['add']['new_storage_type']['#options'][$reference]['file']; unset($form['add']['new_storage_type']['#options'][$reference]['file']); $form['add']['new_storage_type']['#options'][$general]['file'] = $file; } -} \ No newline at end of file +}