You are here

function download_file_settings in DownloadFile 7.2

Same name and namespace in other branches
  1. 6 download_file.admin.inc \download_file_settings()
  2. 7.3 download_file.admin.inc \download_file_settings()
  3. 7 download_file.admin.inc \download_file_settings()

Configure the format of the link accessible.

See also

system_settings_form()

1 string reference to 'download_file_settings'
download_file_menu in ./download_file.module
Implementation of hook_menu().

File

./download_file.admin.inc, line 13
Download file administration settings.

Code

function download_file_settings() {
  $form['download_file_accessible_format'] = array(
    '#type' => 'textfield',
    '#title' => t('Format (without HTML)'),
    '#default_value' => variable_get('download_file_accessible_format', '(format !extension / !file_size)'),
    '#description' => t('Customize the format of the link accessible. Required variables are: <em>!extension</em> and <em>!file_size</em>.'),
    '#required' => TRUE,
  );
  return system_settings_form($form);
}