You are here

function key_provider_file_settings_form in Key 7.2

Same name and namespace in other branches
  1. 7 plugins/key_provider/file.inc \key_provider_file_settings_form()

Settings form for the File key provider.

1 string reference to 'key_provider_file_settings_form'
file.inc in plugins/key_provider/file.inc

File

plugins/key_provider/file.inc, line 45

Code

function key_provider_file_settings_form($defaults) {
  $form = array();
  $form['file_location'] = array(
    '#type' => 'textfield',
    '#title' => t('File location'),
    '#description' => t('The location of the file in which the key will be stored. The path may be absolute (e.g., %abs), relative to the Drupal directory (e.g., %rel), or defined using a stream wrapper (e.g., %str).', array(
      '%abs' => '/etc/keys/foobar.key',
      '%rel' => '../keys/foobar.key',
      '%str' => 'private://keys/foobar.key',
    )),
    '#default_value' => isset($defaults['file_location']) ? $defaults['file_location'] : '',
    '#required' => TRUE,
  );
  return $form;
}