You are here

content.theme.inc in Chaos Tool Suite (ctools) 7

Same filename and directory in other branches
  1. 6 includes/content.theme.inc

Contains theme registry and theme implementations for the content types.

File

includes/content.theme.inc
View source
<?php

/**
 * @file
 * Contains theme registry and theme implementations for the content types.
 */

/**
 * Implements hook_theme to load all content plugins and pass thru if
 * necessary.
 */
function ctools_content_theme(&$theme) {
  ctools_include('content');
  $plugins = ctools_get_content_types();
  foreach ($plugins as $plugin) {
    if ($function = ctools_plugin_get_function($plugin, 'hook theme')) {
      $function($theme, $plugin);
    }
  }
}

Functions

Namesort descending Description
ctools_content_theme Implements hook_theme to load all content plugins and pass thru if necessary.