function wysiwyg_template_load_template_content_types in Wysiwyg API template plugin 7.2
Provide a list of content types for which the template $name is limited to.
2 calls to wysiwyg_template_load_template_content_types()
- wysiwyg_template_load_template in ./
wysiwyg_template.module - Wysiwyg template database load function
- wysiwyg_template_overview in ./
wysiwyg_template.admin.inc - Wysiwyg template overview page - view templates and edit them
File
- ./
wysiwyg_template.module, line 341 - Makes TinyMCE Templates available as plugin for client-side editors integrated via Wysiwyg API.
Code
function wysiwyg_template_load_template_content_types($name) {
$query = db_select('wysiwyg_templates_content_types', 'wc');
$query
->join('node_type', 'nt', 'wc.type = nt.type');
return $query
->fields('wc', array(
'type',
))
->fields('nt', array(
'name',
))
->condition('wc.name', $name)
->execute()
->fetchAllKeyed();
}