You are here

function wysiwyg_template_delete_template in Wysiwyg API template plugin 7.2

Wysiwyg template database delete function

2 calls to wysiwyg_template_delete_template()
wysiwyg_template_delete_confirm_submit in ./wysiwyg_template.admin.inc
Execute node deletion.
wysiwyg_template_template_form_submit in ./wysiwyg_template.admin.inc
Wysiwyg template form submit - delete and save handlers

File

./wysiwyg_template.module, line 455
Makes TinyMCE Templates available as plugin for client-side editors integrated via Wysiwyg API.

Code

function wysiwyg_template_delete_template($name) {
  db_query("DELETE FROM {wysiwyg_templates_content_types} WHERE name = :name", array(
    ':name' => $name,
  ));
  db_query("DELETE FROM {wysiwyg_templates_default} WHERE name = :name", array(
    ':name' => $name,
  ));
  db_query("DELETE FROM {wysiwyg_templates} WHERE name = :name", array(
    ':name' => $name,
  ));
}