Commit bac2056a authored by brockfanning's avatar brockfanning Committed by joseph.olstad

Issue #2833148 by brockfanning: Move bulk upload options into media_bulk_upload module

parent d5809759
......@@ -120,19 +120,6 @@ function media_admin_config_browser($form, &$form_state) {
'#description' => t('CSS property opacity; used with overlay.'),
);
$form['bulk_upload'] = array(
'#type' => 'fieldset',
'#title' => t('Bulk Upload'),
'#collapsible' => TRUE,
'#collapsed' => TRUE,
);
$form['bulk_upload']['media_bulk_upload_edit'] = array(
'#type' => 'checkbox',
'#title' => t("Bulk upload edit"),
'#description' => t("be re-directed to an edit page after bulk upload on a node edit page"),
'#default_value' => variable_get('media_bulk_upload_edit', TRUE),
);
$form['#submit'][] = 'media_admin_config_browser_pre_submit';
return system_settings_form($form);
......
......@@ -235,3 +235,23 @@ function _media_bulk_upload_file_entity_access_recursive($files, $op) {
function media_bulk_upload_multi_load($fids) {
return file_load_multiple(explode(' ', $fids));
}
/**
* Implements hook_form_FORM_ID_alter().
*/
function media_bulk_upload_form_media_admin_config_browser_alter(&$form, &$form_state) {
$form['bulk_upload'] = array(
'#type' => 'fieldset',
'#title' => t('Bulk Upload'),
'#collapsible' => TRUE,
'#collapsed' => TRUE,
);
$form['bulk_upload']['media_bulk_upload_edit'] = array(
'#type' => 'checkbox',
'#title' => t("Bulk upload edit"),
'#description' => t("After bulk uploads on entity edit pages, show edit form for all uploaded files in a single popup."),
'#default_value' => variable_get('media_bulk_upload_edit', TRUE),
);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment