function media_library_settings_form in Media Library 7
Form callback for Media Library settings.
1 string reference to 'media_library_settings_form'
- media_library_menu in ./
media_library.module - Implements hook_menu().
File
- ./
media_library.admin.inc, line 11 - Media Library administration and module settings UI.
Code
function media_library_settings_form($form, &$form_state) {
$form['media_library_file_add_default'] = array(
'#type' => 'checkbox',
'#title' => t('Add files to the media library by default'),
'#default_value' => variable_get('media_library_file_add_default', FALSE),
'#description' => t('Users may choose to include files added through the <a href="@url">file uploaded wizard</a> in the media library. Enable this setting to opt newly added files into the media library by default.', array(
'@url' => url('file/add'),
)),
);
return system_settings_form($form);
}