function monolog_profile_save in Monolog 6
Same name and namespace in other branches
- 7 monolog.crud.inc \monolog_profile_save()
Saves a profile's configuration settings.
Parameters
stdClass $profile: The profile configuration being saved.
Return value
boolean
Related topics
4 calls to monolog_profile_save()
- monolog_handler_delete_form_submit in ./
monolog.admin.inc - Form submission handler for monolog_handler_delete_form().
- monolog_handler_form_submit in ./
monolog.admin.inc - Form submission handler for monolog_handler_form().
- monolog_profile_form_submit in ./
monolog.admin.inc - Form submission handler for monolog_profile_form().
- monolog_profile_import_form_submit in ./
monolog.admin.inc - Form submission handler for monolog_profile_import_form().
File
- ./
monolog.crud.inc, line 77 - CRUD functions for logging profile configurations.
Code
function monolog_profile_save($profile) {
$sucess = ctools_export_crud_save('monolog_profile', $profile);
$args = array(
'@name' => $profile->name,
);
if ($sucess) {
drupal_static_reset('monolog_profile_load');
drupal_static_reset('monolog_profile_load_all');
watchdog('monolog', 'Logging profile saved: @name', $args);
}
else {
watchdog('monolog', 'Error saving logging profile: @name', $args, WATCHDOG_ERROR);
}
return $sucess;
}