summaryrefslogtreecommitdiff
path: root/sites/all/modules/ctools/includes/content.theme.inc
blob: ae4456aa7ca1e979751314c985d8a3c49b6cc3e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?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);
    }
  }
}