/[drupal]/contributions/modules/nice_menus/nice_menus.module
ViewVC logotype

Diff of /contributions/modules/nice_menus/nice_menus.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.61, Wed Mar 25 12:57:50 2009 UTC revision 1.62, Wed May 6 15:33:49 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: nice_menus.module,v 1.60 2009/03/25 12:55:42 add1sun Exp $  // $Id: nice_menus.module,v 1.61 2009/03/25 12:57:50 add1sun Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 406  function theme_nice_menus_build($menu, $ Line 406  function theme_nice_menus_build($menu, $
406        // Build class name based on menu path        // Build class name based on menu path
407        // e.g. to give each menu item individual style.        // e.g. to give each menu item individual style.
408        // Strip funny symbols.        // Strip funny symbols.
409        $clean_path = str_replace(array('http://', '<', '>', '&', '=', '?', ':'), '', $menu_item['link']['href']);        $clean_path = str_replace(array('http://', 'www', '<', '>', '&', '=', '?', ':'), '', $menu_item['link']['href']);
410        // Convert slashes to dashes.        // Convert slashes to dashes.
411        $clean_path = str_replace('/', '-', $clean_path);        $clean_path = str_replace('/', '-', $clean_path);
412        $class = 'menu-path-'. $clean_path;        $class = 'menu-path-'. $clean_path;

Legend:
Removed from v.1.61  
changed lines
  Added in v.1.62

  ViewVC Help
Powered by ViewVC 1.1.2