You are here

function wysiwyg_profile_delete in Wysiwyg 7.2

Same name and namespace in other branches
  1. 5.2 wysiwyg.admin.inc \wysiwyg_profile_delete()
  2. 5 wysiwyg.admin.inc \wysiwyg_profile_delete()
  3. 6.2 wysiwyg.module \wysiwyg_profile_delete()
  4. 6 wysiwyg.admin.inc \wysiwyg_profile_delete()

Deletes a profile from the database.

1 call to wysiwyg_profile_delete()
wysiwyg_profile_delete_confirm_submit in ./wysiwyg.admin.inc
Submit callback for Wysiwyg profile delete form.

File

./wysiwyg.module, line 875

Code

function wysiwyg_profile_delete($profile) {
  db_delete('wysiwyg')
    ->condition('format', $profile->format)
    ->execute();

  // Clear the editing caches.
  if (module_exists('ctools')) {
    ctools_include('object-cache');
    ctools_object_cache_clear_all('wysiwyg_profile', $profile->name);
  }
  else {
    cache_clear_all('wysiwyg_profile:' . $profile->name, 'cache');
  }
  wysiwyg_profile_cache_clear();
}