You are here

function key_provider_config_set_key_value in Key 7.3

Sets the value of a key.

Parameters

array $config: The key configuration for which to set the value.

array $form_state: The form state.

string $key_value: The key value.

Return value

bool TRUE if successful, FALSE if unsuccessful.

1 string reference to 'key_provider_config_set_key_value'
config.inc in plugins/key_provider/config.inc

File

plugins/key_provider/config.inc, line 93

Code

function key_provider_config_set_key_value($config, &$form_state, $key_value) {
  if (isset($config['key_provider_settings']['base64_encoded']) && $config['key_provider_settings']['base64_encoded'] == TRUE) {
    $key_value = base64_encode($key_value);
  }
  if ($form_state['values']['key_value'] = $key_value) {
    return TRUE;
  }
  else {
    return FALSE;
  }
}