Revision: 44391
Updated Code
at May 13, 2011 05:02 by kfiil
Updated Code
/** * Implementation of phptemplate_preprocess() * * This function checks to see if a hook has a preprocess file associated with it, and if so, loads it. * * @param $vars * @param $hook */ function fremtidslaboratoriet_preprocess(&$vars, $hook) { //DEBUG //dpm($hook); $preprocessFunction = drupal_get_path('theme', 'fremtidslaboratoriet') . '/preprocess/preprocess-' . str_replace('_', '-', $hook) . '.inc'; if(is_file($preprocessFunction)) { include($preprocessFunction); //DEBUG //dpm($preprocessFunction); } }
Revision: 44390
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at April 11, 2011 01:52 by kfiil
Initial Code
/** * Implementation of phptemplate_preprocess() * * This function checks to see if a hook has a preprocess file associated with it, and if so, loads it. * * @param $vars * @param $hook */ function ilab_preprocess(&$vars, $hook) { //DEBUG //dpm($hook); if(is_file(drupal_get_path('theme', 'ilab') . '/preprocess/preprocess-' . str_replace('_', '-', $hook) . '.inc')) { $preprocessFunction = 'preprocess/preprocess-' . str_replace('_', '-', $hook) . '.inc'; include($preprocessFunction); } }
Initial URL
Implementation of phptemplate_preprocess. Enables that preprocess functions are in different files
Initial Description
Implementation of phptemplate_preprocess. Enables that preprocess functions are in different files
Initial Title
Drupal: phptemplate_preprocess
Initial Tags
drupal, theme
Initial Language
PHP