You are here

function key_provider_variable_key_form in Key 7

1 string reference to 'key_provider_variable_key_form'
variable.inc in plugins/key_provider/variable.inc
Plugin definition for the Variable key provider.

File

plugins/key_provider/variable.inc, line 65
Plugin definition for the Variable key provider.

Code

function key_provider_variable_key_form($defaults) {
  $form = array();
  $form['key'] = array(
    '#type' => 'textarea',
    '#title' => t('Key value'),
    '#description' => t('Enter the key to save it to the database. If it’s defined in the settings.php file, as described in the instructions, this field should be left blank.'),
    '#default_value' => isset($defaults['key']) ? $defaults['key'] : '',
  );
  return $form;
}