You are here

function key_config_load in Key 7.3

Same name and namespace in other branches
  1. 7.2 key.module \key_config_load()

Menu argument loader: loads a key configuration by id.

Parameters

string $id: The machine-readable name of an configuration to load, where '-' is replaced with '_'.

Return value

array An array representing an key configuration or FALSE if the configuration does not exist.

1 string reference to 'key_config_load'
key_config_form in includes/key.admin.inc
Form constructor for the key configuration form.

File

./key.module, line 229
Main Key functionality and hook implementations.

Code

function key_config_load($id) {
  return key_get_key(strtr($id, array(
    '-' => '_',
  )));
}