You are here

function contemplate_get_templates in Content Templates (Contemplate) 6

Same name and namespace in other branches
  1. 5 contemplate.module \contemplate_get_templates()
  2. 7 contemplate.module \contemplate_get_templates()

Get all of the current templates Only used on admin page

Return value

unknown

2 calls to contemplate_get_templates()
contemplate_admin in ./contemplate.module
Admin page... list out the node types
contemplate_features_export_options in includes/contemplate.features.inc
Implementation of hook_features_export_options().

File

./contemplate.module, line 506
Create templates to customize teaser and body content.

Code

function contemplate_get_templates() {
  foreach (node_get_types() as $r) {

    /*
    $templates[$r->type]['teaser'] = $r->teaser;
    $templates[$r->type]['body'] = $r->body;
    $templates[$r->type]['rss'] = $r->rss;
    $templates[$r->type]['enclosure'] = $r->enclosure;
    */
    $templates[$r->type] = contemplate_get_template($r->type);
  }
  return $templates;
}