function filemime_settings in File MIME 7
Same name and namespace in other branches
- 6 filemime.admin.inc \filemime_settings()
Form builder function for admin settings.
1 string reference to 'filemime_settings'
- filemime_menu in ./
filemime.module - Implements hook_menu().
File
- ./
filemime.admin.inc, line 11 - Admin page callbacks for File MIME module.
Code
function filemime_settings() {
$form['filemime_file'] = array(
'#type' => 'textfield',
'#title' => t('Local mime.types file path'),
'#default_value' => variable_get('filemime_file', ''),
'#description' => t('If a mime.types file is readable, it will be parsed to extract MIME type mappings. Example: <em>/etc/mime.types</em>') . '<br />' . (is_readable(variable_get('filemime_file', '')) ? t('The configured mime.types file is readable.') : t('The configured mime.types file is not readable.')),
);
$form['filemime_types'] = array(
'#type' => 'textarea',
'#title' => t('Custom MIME type mappings'),
'#default_value' => variable_get('filemime_types', ''),
'#description' => t('Types provided here will override the mime.types file. Specify the mappings using the mime.types file format. Example:<br /><em>audio/mpeg mpga mpega mp2 mp3 m4a<br />audio/mpegurl m3u<br />audio/ogg oga ogg spx</em>'),
);
return system_settings_form($form);
}