All pastes #971534 Raw Edit

Untitled

public php v1 · immutable
·published 2008-04-04 20:37 UTC
rendered paste body
function _phptemplate_variables($hook, $vars) {	switch ($hook) {	case 'page':		// unsets css for all modules and cores		$vars['css'] = _HBR_theme_unset_css($vars['css']);		// adds in custom css		$vars['css'] = drupal_add_css(path_to_theme() .'assets/css/default-steez.css', 'theme');		$vars['css'] = drupal_add_css(path_to_theme() .'assets/css/png.css', 'theme');				// combine styles in to $var		$vars['styles'] = drupal_get_css($vars['css']);				// adds theme to admin pages		if ((arg(0) == 'node' && arg(1) == 'add') || (arg(0) == 'node' && arg(2) == 'edit') ||  (arg(0) == 'user' && arg(2) == 'edit') ) {			  global $custom_theme;			  $custom_theme = variable_get('admin_theme', '0');			  drupal_add_css(drupal_get_path('module', 'system') .'/admin.css', 'module');		  }	break;	}return $vars;}/*** Unset all module and core styles**/function _HBR_theme_unset_css($css) {	if (is_array($css['all']['module'])) {		$css['all']['module'] = array();	}return $css;}