function monolog_get_profile_handlers in Monolog 7
Same name and namespace in other branches
- 6 monolog.admin.inc \monolog_get_profile_handlers()
Returns the handlers associated with a profile.
Return value
array
1 call to monolog_get_profile_handlers()
- monolog_profile_page in ./
monolog.admin.inc - Page callback; Displayes all profile pages.
File
- ./
monolog.admin.inc, line 49 - Administrative settings for the Monolog module.
Code
function monolog_get_profile_handlers($profile) {
$profile_handlers = array();
$handler_info = monolog_handler_info_load_all();
foreach ($profile->options['handlers'] as $handler) {
if (!isset($handler_info[$handler['handler']])) {
$handler_info[$handler['handler']] = array(
'label' => $handler['handler'],
);
}
$profile_handlers[$handler['handler']] = $handler_info[$handler['handler']]['label'];
}
return $profile_handlers;
}