function key_provider_variable_get_key in Key 7
Callback function to return a key from a variable.
1 call to key_provider_variable_get_key()
- key_provider_variable_status in plugins/
key_provider/ variable.inc
1 string reference to 'key_provider_variable_get_key'
- variable.inc in plugins/
key_provider/ variable.inc - Plugin definition for the Variable key provider.
File
- plugins/
key_provider/ variable.inc, line 24 - Plugin definition for the Variable key provider.
Code
function key_provider_variable_get_key($settings) {
if (empty($settings['variable_name'])) {
return NULL;
}
$variable_name = KEY_PROVIDER_VARIABLE_PREFIX . $settings['variable_name'];
$key = variable_get($variable_name, '');
return $key;
}