You are here

function wysiwyg_template_name_exists in Wysiwyg API template plugin 7.2

2 calls to wysiwyg_template_name_exists()
wysiwyg_template_save_template in ./wysiwyg_template.module
Wysiwyg template database save function.
wysiwyg_template_update_7200 in ./wysiwyg_template.install
Provide machine names and auto-generation of machine names for existing templates. Drop tid field.
1 string reference to 'wysiwyg_template_name_exists'
wysiwyg_template_template_form in ./wysiwyg_template.admin.inc
Wysiwyg template create/modify form

File

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

Code

function wysiwyg_template_name_exists($name) {
  return (bool) db_query('SELECT 1 FROM {wysiwyg_templates} WHERE name = :name', array(
    ':name' => $name,
  ))
    ->fetchField();
}