You are here

function filemime_settings in File MIME 6

Same name and namespace in other branches
  1. 7 filemime.admin.inc \filemime_settings()

Form builder function for admin settings.

1 string reference to 'filemime_settings'
filemime_menu in ./filemime.module
Implementation of hook_menu().

File

./filemime.admin.inc, line 6

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 exists and is readable, it will be parsed to extract MIME extension mappings. Example: <em>/usr/local/etc/apache22/mime.types</em>'),
  );
  $form['filemime_types'] = array(
    '#type' => 'textarea',
    '#title' => t('Additional MIME extension mappings'),
    '#default_value' => variable_get('filemime_types', ''),
    '#description' => t('Additional types provided here will be merged with the mime.types file. Specify the mappings using the mime.types file format. Example:<br /><em>audio/mpeg mp3 m4a<br />audio/ogg ogg</em>'),
  );
  $form['#submit'][] = 'filemime_settings_submit';
  return system_settings_form($form);
}