1.20.x config.inc | config_get_names_with_prefix($prefix, $type = 'active') |
Retrieves all configurations starting with a particular prefix.
Parameters
string $prefix: The prefix of the configuration names to retrieve.
string $type: The configuration type, either "staging" or "active".
Return value
array: An array containing matching configuration object names.
File
- includes/
config.inc, line 257 - This is the API for configuration storage.
Code
function config_get_names_with_prefix($prefix, $type = 'active') {
$storage = config_get_config_storage($type);
return $storage->listAll($prefix);
}