You are here

function wysiwyg_profile_delete in Wysiwyg 6.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 wysiwyg.admin.inc \wysiwyg_profile_delete()
  4. 7.2 wysiwyg.module \wysiwyg_profile_delete()

Remove 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 762
Integrates client-side editors with Drupal.

Code

function wysiwyg_profile_delete($format) {
  db_query("DELETE FROM {wysiwyg} WHERE format = %d", $format);

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