function monolog_profile_load in Monolog 6
Same name and namespace in other branches
- 7 monolog.crud.inc \monolog_profile_load()
Loads a profile configuration object.
Parameters
string $name: The machine name of the profile.
Return value
array|FALSE The configuration options, FALSE if the profile doesn't exist.
Related topics
2 calls to monolog_profile_load()
- monolog in ./
monolog.module - Factory function for Monolog loggers.
- monolog_handler_load in ./
monolog.crud.inc - Loads a logging profile's handler configuration.
4 string references to 'monolog_profile_load'
- monolog_handler_form in ./
monolog.admin.inc - Handler settings callback.
- monolog_profile_delete in ./
monolog.crud.inc - Deletes a profile's configuration settings.
- monolog_profile_form in ./
monolog.admin.inc - Form for adding and editing logging profile configurations.
- monolog_profile_save in ./
monolog.crud.inc - Saves a profile's configuration settings.
File
- ./
monolog.crud.inc, line 58 - CRUD functions for logging profile configurations.
Code
function monolog_profile_load($name) {
$profiles =& drupal_static(__FUNCTION__, array());
if (!isset($profiles[$name])) {
ctools_include('export');
if ($profiles[$name] = ctools_export_crud_load('monolog_profile', $name)) {
uasort($profiles[$name]->options['handlers'], 'drupal_sort_weight');
}
}
return $profiles[$name] ?: FALSE;
}