You are here

function key_get_config in Key 7.2

Same name and namespace in other branches
  1. 7 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.

5 calls to key_get_config()
key_config_delete_confirm_submit in includes/key.admin.inc
Submit handler for key_config_delete_confirm().
key_config_features_export_render in includes/key_config.features.inc
Implements hook_features_export_render().
key_config_load in ./key.module
Menu argument loader: loads a key configuration by name.
key_get_key in ./key.module
Get a key using a key configuration.
key_save_config in ./key.module
Save a key configuration.

File

./key.module, line 346
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;
}