You are here

function wysiwyg_template_load_default in Wysiwyg API template plugin 7.2

2 calls to wysiwyg_template_load_default()
wysiwyg_template_form_node_form_alter in ./wysiwyg_template.module
Implements hook_form_FORM_ID_alter().
wysiwyg_template_form_node_type_form_alter in ./wysiwyg_template.module
Implements hook_form_FORM_ID_alter().

File

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

Code

function wysiwyg_template_load_default($type) {
  $name = db_select('wysiwyg_templates_default', 'w')
    ->fields('w', array(
    'name',
  ))
    ->condition('w.type', $type)
    ->execute()
    ->fetchField();
  return empty($name) ? '' : $name;
}