You are here

function resource_settings_private_form in D7 Media 6

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

File

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

Code

function resource_settings_private_form() {
  $form = array();
  $form['stream_private_path'] = array(
    '#type' => 'textfield',
    '#title' => t('private:// file path'),
    '#default_value' => variable_get('stream_private_path', 'sites/default/files-private'),
    '#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);
}