You are here

function resource_settings_public_form in D7 Media 6

1 string reference to 'resource_settings_public_form'
resource_menu in resource/resource.module
Implements hook_menu().

File

resource/resource.admin.inc, line 35
Administrative pages for the Resource module.

Code

function resource_settings_public_form() {
  $form = array();
  $form['stream_public_path'] = array(
    '#type' => 'textfield',
    '#title' => t('public:// file path'),
    '#default_value' => variable_get('stream_public_path', 'sites/default/files'),
    '#maxlength' => 255,
    '#description' => t('The path where public:// files will be stored. This directory must exist and be writable by Drupal. If the download method is set to public, this directory must be relative to the Drupal installation directory and be accessible over the web. If the download method is set to private, this directory should not be accessible over the web. Changing this location will modify all download paths and may cause unexpected problems on an existing site.'),
    '#after_build' => array(
      'system_check_directory',
    ),
  );
  return system_settings_form($form);
}