content.theme.inc 458 B

123456789101112131415161718192021
  1. <?php
  2. /**
  3. * @file
  4. * Contains theme registry and theme implementations for the content types.
  5. */
  6. /**
  7. * Implements hook_theme to load all content plugins and pass thru if
  8. * necessary.
  9. */
  10. function ctools_content_theme(&$theme) {
  11. ctools_include('content');
  12. $plugins = ctools_get_content_types();
  13. foreach ($plugins as $plugin) {
  14. if ($function = ctools_plugin_get_function($plugin, 'hook theme')) {
  15. $function($theme, $plugin);
  16. }
  17. }
  18. }