You are here

function key_provider_variable_settings_form in Key 7

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

File

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

Code

function key_provider_variable_settings_form($defaults) {
  $form = array();
  $form['variable_name'] = array(
    '#type' => 'textfield',
    '#title' => t('Variable name'),
    '#description' => t('The name of the variable in which the key will be stored. It must only contain lowercase letters, numbers, and underscores.'),
    '#default_value' => isset($defaults['variable_name']) ? $defaults['variable_name'] : '',
    '#required' => TRUE,
    '#field_prefix' => KEY_PROVIDER_VARIABLE_PREFIX,
  );
  return $form;
}