function monolog_profile_load_all in Monolog 7
Same name and namespace in other branches
- 6 monolog.crud.inc \monolog_profile_load_all()
Gets all profile configurations.
Return value
array An associative array keyed by the machine name of the profile to the configuration object.
Related topics
2 calls to monolog_profile_load_all()
- monolog_profile_options in ./
monolog.admin.inc - Returns an array of profile options.
- monolog_profile_page in ./
monolog.admin.inc - Page callback; Displayes all profile pages.
2 string references to 'monolog_profile_load_all'
- monolog_profile_delete in ./
monolog.crud.inc - Deletes a profile's configuration settings.
- monolog_profile_save in ./
monolog.crud.inc - Saves a profile's configuration settings.
File
- ./
monolog.crud.inc, line 21 - CRUD functions for logging profile configurations.
Code
function monolog_profile_load_all() {
$profiles =& drupal_static(__FUNCTION__);
if (NULL === $profiles) {
ctools_include('export');
$profiles = ctools_export_crud_load_all('monolog_profile');
ksort($profiles);
foreach ($profiles as $name => $profile) {
uasort($profile->options['handlers'], 'drupal_sort_weight');
}
}
return $profiles;
}