| [ Index ] |
PHP Cross Reference of Drupal 6 (yi-drupal) |
[Summary view] [Print] [Text view]
1 <?php 2 // $Id: stylizer.theme.inc,v 1.1.2.3 2010/07/13 23:55:22 merlinofchaos Exp $ 3 4 /** 5 * @file 6 * Contains theme registry and theme implementations for the content types. 7 */ 8 9 /** 10 * Implementation of hook_theme to load all content plugins and pass thru if 11 * necessary. 12 */ 13 function ctools_stylizer_theme(&$theme) { 14 $theme['ctools_stylizer_color_scheme_form'] = array( 15 'arguments' => array('form' => NULL), 16 'file' => 'includes/stylizer.inc', 17 ); 18 19 $theme['ctools_stylizer_preview_form'] = array( 20 'arguments' => array('form' => NULL), 21 'file' => 'includes/stylizer.inc', 22 ); 23 24 $theme['ctools_style_icon'] = array( 25 'arguments' => array('image' => NULL, 'title' => NULL), 26 'file' => 'includes/stylizer.inc', 27 ); 28 29 ctools_include('stylizer'); 30 // Register all themes given for basetypes. 31 $plugins = ctools_get_style_bases(); 32 $base_types = ctools_get_style_base_types(); 33 foreach ($plugins as $plugin) { 34 if (!empty($base_types[$plugin['module']][$plugin['type']]) && !empty($plugin['theme'])) { 35 $base_type = $base_types[$plugin['module']][$plugin['type']]; 36 $theme[$plugin['theme']] = array( 37 'arguments' => $base_type['theme arguments'], 38 'path' => $plugin['path'], 39 ); 40 41 // if no theme function exists, assume template. 42 if (!function_exists("theme_$plugin[theme]")) { 43 $theme[$plugin['theme']]['template'] = str_replace('_', '-', $plugin['theme']); 44 $theme[$plugin['theme']]['file'] = $plugin['file']; // for preprocess. 45 } 46 } 47 } 48 } 49
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Mon Jul 9 18:01:44 2012 | Cross-referenced by PHPXref 0.7 |