function key_encrypt_key_settings_form in Key 7.3
Same name and namespace in other branches
- 7.2 modules/key_encrypt/plugins/key_providers/key.inc \key_encrypt_key_settings_form()
Settings form for the Key Module key provider.
1 string reference to 'key_encrypt_key_settings_form'
- key_encrypt_encrypt_key_providers in modules/
key_encrypt/ plugins/ key_providers/ key.inc - Implements MODULE_FILENAME_encrypt_key_providers().
File
- modules/
key_encrypt/ plugins/ key_providers/ key.inc, line 38
Code
function key_encrypt_key_settings_form($defaults) {
$form = array();
$form['key_config'] = array(
'#type' => 'select',
'#title' => t('Key'),
'#description' => t('Keys listed here are defined in the <a href="@path">Key module</a>.', array(
'@path' => url('admin/config/system/keys'),
)),
'#empty_option' => t('- Select a key -'),
'#options' => key_get_key_names_as_options(),
'#default_value' => isset($defaults['key_config']) ? $defaults['key_config'] : '',
'#required' => TRUE,
);
return $form;
}