You are here

function monolog_profile_delete in Monolog 6

Same name and namespace in other branches
  1. 7 monolog.crud.inc \monolog_profile_delete()

Deletes a profile's configuration settings.

Parameters

stdClass $profile: The profile configuration being deleted.

Return value

boolean

Related topics

2 calls to monolog_profile_delete()
monolog_profile_delete_form_submit in ./monolog.admin.inc
Form submission handler for monolog_profile_delete_form().
monolog_profile_import_form_submit in ./monolog.admin.inc
Form submission handler for monolog_profile_import_form().

File

./monolog.crud.inc, line 99
CRUD functions for logging profile configurations.

Code

function monolog_profile_delete($profile) {

  // @todo CTools doesn't return the status. Figure out how to get it.
  ctools_export_crud_delete('monolog_profile', $profile);
  drupal_static_reset('monolog_profile_load');
  drupal_static_reset('monolog_profile_load_all');
  $args = array(
    '@name' => $profile->name,
  );
  watchdog('monolog', 'Logging profile deleted: @name', $args);
  return TRUE;
}