Ciao,

ho installato Drupal 7 e vorrei eliminare i vari css dei moduli e avere dei css differenti per il forum e altri tipi di contenuto nel 6 utilizzavo il seguente file template.php per ottenere questi effetti ma non riesco a usarlo per druapal 7

<?php
// $Id: template.php,v 1.21 2009/08/12 04:25:15 johnalbin Exp $
/**
* Implementation of HOOK_theme().
*/
function cherryblossom_theme(&$existing, $type, $theme, $path) {
 
$hooks = zen_theme($existing, $type, $theme, $path);
 
// Add your theme hooks like this:
  /*
  $hooks['hook_name_here'] = array( // Details go here );
  */
  // @TODO: Needs detailed comments. Patches welcome!
 
return $hooks;
}
function
phptemplate_preprocess_page(&$vars)
{
$css = $vars['css'];
unset(
$css['all']['module']['modules/aggregator/aggregator.css']);
unset(
$css['all']['module']['modules/comment/comment.css']);
unset(
$css['all']['module']['modules/forum/forum.css']);
unset(
$css['all']['module']['modules/node/node.css']);
unset(
$css['all']['module']['modules/poll/poll.css']);
unset(
$css['all']['module']['modules/system/system.css']);
unset(
$css['all']['module']['modules/system/defaults.css']);
unset(
$css['all']['module']['modules/system/system-menus.css']);
unset(
$css['all']['module']['modules/taxonomy/taxonomy.css']);
unset(
$css['all']['module']['modules/user/user.css']);
unset(
$css['all']['module']['sites/all/modules/advanced_forum/styles/naked_stacked/advanced_forum-structure.css']);
unset(
$css['all']['module']['sites/all/modules/advanced_forum/styles/naked_stacked/advanced_forum.css']);
unset(
$css['all']['module']['sites/all/modules/shoutbox/shoutbox.css']);
unset(
$css['all']['module']['sites/all/modules/author_pane/author_pane.css']);
unset(
$css['all']['module']['sites/all/modules/cck/modules/fieldgroup/fieldgroup.css']);
unset(
$css['all']['module']['sites/all/modules/cck/modules/fieldgroup/fieldgroup.css']);
unset(
$css['all']['module']['sites/all/modules/cck/theme/content-module.css']);
unset(
$css['all']['module']['sites/all/modules/filefield/filefield.css']);
unset(
$css['all']['module']['sites/all/modules/image/contrib/image_gallery/image_gallery.css']);
unset(
$css['all']['module']['sites/all/modules/image/image.css']);
unset(
$css['all']['module']['sites/all/modules/itweak_upload/itweak_upload.css']);
unset(
$css['all']['module']['sites/all/modules/paging/paging.css']);
unset(
$css['all']['module']['sites/all/modules/print/css/printlinks.css']);
unset(
$css['all']['module']['sites/all/modules/quote/quote.css']);
unset(
$css['all']['module']['sites/all/modules/shoutbox/shoutbox.css']);
unset(
$css['all']['module']['sites/all/modules/addtoany/addtoany.css']);
unset(
$css['all']['module']['sites/all/modules/activitystream/activitystream.css']);
unset(
$css['all']['module']['sites/all/modules/tagadelic/tagadelic.css']);
unset(
$css['all']['module']['sites/all/modules/views/css/views.css']);
unset(
$css['all']['module']['sites/all/modules/views_slideshow/contrib/views_slideshow_singleframe/views_slideshow.css']);
unset(
$css['all']['module']['sites/all/modules/views_slideshow/contrib/views_slideshow_thumbnailhover/views_slideshow.css']);
unset(
$css['all']['module']['sites/all/modules/comment_notify/comment_notify.css']);
unset(
$css['all']['module']['sites/all/modules/nice_menus/nice_menus.css']);
unset(
$css['all']['module']['sites/all/modules/nice_menus/nice_menus_default.css']);
unset(
$css['all']['module']['sites/all/modules/custom_pagers/custom_pagers.css']);
$vars['styles'] = drupal_get_css($css);
}

function
cherryblossom_preprocess_page(&$vars){
  if ((
arg(0) == 'blog') || (isset($vars['node']) && $vars['node']->type == 'blog')) {
   
$css = '/' . path_to_theme() . '/css/blog.css';
   
$vars['styles'] .= '<link type="text/css" rel="stylesheet" href="' . $css . '" />';
  }
    else if ((
arg(0) == 'cantanti') || (isset($vars['node']) && $vars['node']->type == 'cantanti')) {
   
$css = '/' . path_to_theme() . '/css/cantanti.css';
   
$vars['styles'] .= '<link type="text/css" rel="stylesheet" href="' . $css . '" />';
  } 
    else if ((
arg(0) == 'photo') || (isset($vars['node']) && $vars['node']->type == 'photo')) {
   
$css = '/' . path_to_theme() . '/css/photo.css';
   
$vars['styles'] .= '<link type="text/css" rel="stylesheet" href="' . $css . '" />';
  } 
    else if ((
arg(0) == 'forum') || (isset($vars['node']) && $vars['node']->type == 'forum')) {
   
$css = '/' . path_to_theme() . '/css/forum.css';
   
$vars['styles'] .= '<link type="text/css" rel="stylesheet" href="' . $css . '" />';
  } 
    else if ((
arg(0) == 'comment') || (isset($vars['node']) && $vars['node']->type == 'comment')) {
   
$css = '/' . path_to_theme() . '/css/forum.css';
   
$vars['styles'] .= '<link type="text/css" rel="stylesheet" href="' . $css . '" />';
  } 
    else if ((
arg(0) == 'contact') || (isset($vars['node']) && $vars['node']->type == 'contact')) {
   
$css = '/' . path_to_theme() . '/css/contact.css';
   
$vars['styles'] .= '<link type="text/css" rel="stylesheet" href="' . $css . '" />';
  } 
    else if ((
arg(0) == 'download') || (isset($vars['node']) && $vars['node']->type == 'download')) {
   
$css = '/' . path_to_theme() . '/css/download.css';
   
$vars['styles'] .= '<link type="text/css" rel="stylesheet" href="' . $css . '" />';
  } 
    else if ((
arg(0) == 'dorama') || (isset($vars['node']) && $vars['node']->type == 'dorama')) {
   
$css = '/' . path_to_theme() . '/css/dorama.css';
   
$vars['styles'] .= '<link type="text/css" rel="stylesheet" href="' . $css . '" />';
  } 
    else if ((
arg(0) == 'anime') || (isset($vars['node']) && $vars['node']->type == 'anime')) {
   
$css = '/' . path_to_theme() . '/css/anime.css';
   
$vars['styles'] .= '<link type="text/css" rel="stylesheet" href="' . $css . '" />';
  }
    else if ((
arg(0) == 'evento') || (isset($vars['node']) && $vars['node']->type == 'evento')) {
   
$css = '/' . path_to_theme() . '/css/evento.css';
   
$vars['styles'] .= '<link type="text/css" rel="stylesheet" href="' . $css . '" />';
  }
}



function
url_breadcrumbs() {

  function
get_crumb($lvl){

   
$uri_request_id = $_SERVER['REQUEST_URI'];
   
$urlexplode = explode("?", $uri_request_id);
   
$url = explode("/",$urlexplode[0]);

    if(
$url[$lvl]){
      if(
$lvl > 1) {
       
$var = array_keys($url);
        foreach(
$var as $vars){
          if(
$vars == 1){
           
$urlpathpeice .= $url[$vars];
          }
          if(
$vars <= $lvl && $vars > 1){
           
$urlpathpeice .= '/'.$url[$vars];
          }
        }
       
$urlpathalias = $urlpathpeice;
      } elseif (
$lvl == 1) {
       
$urlpathalias = $url[$lvl];
      }
     
$urlsystem = drupal_lookup_path('source', $urlpathalias);
     
$urlsystemexplode = explode("/", $urlsystem);
     
$urltype = $urlsystemexplode[0];

      if(
$urltype == "taxonomy"){
       
$term = taxonomy_get_term($urlsystemexplode[2]);
        if(
$url[$lvl+1]){
          return 
' >> <a href="/'.$urlpathalias.'" title="'.$term->name.'">'.$term->name.'</a>';
        } else {
          return 
' >> '.$term->name.'';
        }
      } elseif(
$urltype == "node"){
       
$node = node_load($urlsystemexplode[1]);
        if(
$url[$lvl+1]){
          return 
' >> <a href="/'.$urlpathalias.'" title="'.$nodename.'">'.$node->title.'</a>';
        } else {
          return 
' >> '.$node->title;
        }
      } else {
       
$urltitleexplode = explode("-", $url[$lvl]);
       
$words = array_keys($urltitleexplode);
        foreach(
$words as $word){
         
$urltitle .= ''.ucwords($urltitleexplode[$word]).' ';
        }
        if(
$url[$lvl+1]) {
          return 
' >> <a href="/'.$urlpathalias.'" title="'.$urltitle.'">'.$urltitle.'</a>';
        } else {
          return 
' >> '.$urltitle.'';
        }
      }
    }
  }

  function
get_crumb_all() {
   
$uri_request_id = $_SERVER['REQUEST_URI'];
   
$urlexplode = explode("?", $uri_request_id);
   
$url = explode("/",$urlexplode[0]);

   
$numbs = array_keys($url);
    foreach(
$numbs as $numb) {
     
$crumbs .= get_crumb($numb);
    }
  return
$crumbs;
  }

 
$output .= '<div class="breadcrumb">';
 
$output .= '<a href="/" title="Home">Home</a>';
 
$output .= get_crumb_all();
 
$output .= '</div>';

return
$output;
}
?>