Revision: 3833
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at September 21, 2007 09:27 by berkes
Initial Code
function _phptemplate_variables($hook, $vars) { switch ($hook) { case 'page': $vars['css'] = _sympal_theme_unset_css($vars['css']); $vars['styles'] = drupal_get_css($vars['css']); break; } return $vars; } /** * Unset all module and core styles **/ function _sympal_theme_unset_css($css) { if (is_array($css['all']['module'])) { $css['all']['module'] = array(); } return $css; }
Initial URL
Initial Description
Removes the core, and node styles from the $style variable. You most morbably already defined _phptemplate_variables($hook, $vars), in that case just add the two lines there. _sympal_theme.. is the name of the theme where we use this.
Initial Title
Drupal - Unset (not include) all core stylesheets - Theme variable overrides.
Initial Tags
css, drupal, theme
Initial Language
PHP