function key_get_config in Key 7
Same name and namespace in other branches
- 7.2 key.module \key_get_config()
Gets information about a specific key configuration.
Parameters
string $name: The machine name of the configuration to get.
bool $reset: A flag to force the configuration to be retrieved from the database.
Return value
array A key configuration.
4 calls to key_get_config()
- key_config_features_export_render in includes/
key_config.features.inc - Implements hook_features_export_render().
- key_get_key in ./
key.module - Get a key using a key configuration.
- key_save_config in ./
key.module - Save a key configuration.
- key_ui_config_load in modules/
key_ui/ key_ui.module - Menu argument loader: loads a key configuration by name.
File
- ./
key.module, line 347 - Provides the ability to manage keys, which can be used by other modules.
Code
function key_get_config($name, $reset = FALSE) {
$configs =& drupal_static(__FUNCTION__);
if (!isset($configs) || $reset) {
$configs = key_get_configs($reset);
}
if (array_key_exists($name, $configs)) {
$config = $configs[$name];
}
else {
$config = NULL;
}
return $config;
}