add css if url contains I have one node type and two page types for this node. 

http://site.com/themes/*


and

http://site.com/years/*


And i want to hide one of the "view-filed" in all "years" pages using the css.

Found this but it doesn't work 

function mythemename_preprocess_page(&amp;$variables,$hook) {
  $alias = explode('/',drupal_get_path_alias(request_uri()));
  if($alias[1]== "years") {
   $vars['theme_hook_suggestions'][] = 'years';
  }
}


https://groups.drupal.org/node/130944#comment-762483

I would be very grateful for any help.
Here's how I would do it (but I'm rather new to this, so maybe your approach is better)...

function mythemename_preprocess_page(&amp;$vars, $hook) {
  if (arg(0) == 'years') {
    drupal_add_css(path_to_theme().'/css/years.css');
  }
}