Projet

Général

Profil

Paste
Télécharger (458 octets) Statistiques
| Branche: | Révision:

root / drupal7 / sites / all / modules / ctools / includes / content.theme.inc @ c2ac6d1d

1
<?php
2

    
3
/**
4
 * @file
5
 * Contains theme registry and theme implementations for the content types.
6
 */
7

    
8
/**
9
 * Implements hook_theme to load all content plugins and pass thru if
10
 * necessary.
11
 */
12
function ctools_content_theme(&$theme) {
13
  ctools_include('content');
14

    
15
  $plugins = ctools_get_content_types();
16
  foreach ($plugins as $plugin) {
17
    if ($function = ctools_plugin_get_function($plugin, 'hook theme')) {
18
      $function($theme, $plugin);
19
    }
20
  }
21
}