You are here

function _wysiwyg_template_set_node_type in Wysiwyg API template plugin 7.2

Callback to set/get the content type of the current node, defaults to '_'.

2 calls to _wysiwyg_template_set_node_type()
wysiwyg_template_form_node_form_alter in ./wysiwyg_template.module
Implements hook_form_FORM_ID_alter().
_wysiwyg_template_get_list_url in ./wysiwyg_template.module
Callback to determine the correct URL which allows the editor to receive the list of templates.

File

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

Code

function _wysiwyg_template_set_node_type($type = NULL) {
  static $content_type;
  if (isset($type)) {
    $content_type = $type;
  }
  return isset($content_type) ? $content_type : '_';
}