function contemplate_get_templates in Content Templates (Contemplate) 7
Same name and namespace in other branches
- 5 contemplate.module \contemplate_get_templates()
- 6 contemplate.module \contemplate_get_templates()
Get all of the current templates Only used on admin page
Return value
array of template arrays
1 call to contemplate_get_templates()
- contemplate_admin in ./
contemplate.module - Admin page... list out the node types
File
- ./
contemplate.module, line 546 - Create templates to customize teaser and body content.
Code
function contemplate_get_templates() {
foreach (node_type_get_types() as $r) {
$templates[$r->type] = contemplate_get_template($r->type);
}
return $templates;
}