Tag: d5

Here you can see a listing of all the posts tagged with d5 on this website.

  • Theming primary links in Drupal 5.0

    Posted on Nov. 24, 2006 at 15:32 +0100 Tagged with , , ,

    I'm currently in the process of porting over the theme here to Drupal 5.0 and noticed a slight difference between 4.7 and 5.0. While I was able to use something like this in my template.php before:

       function mytheme_menu_item_link($item, $link_item) {
           static $menu;
           $attribs = isset($item['description']) ? 
               array('title' => $item['description']) : array();
           if ('<front>' == $link_item['path'] &&
               (
                   arg(0)=='node' && (
                       (is_numeric(arg(1)) && arg(1) != 213)
                       || arg(1)==''
                   )
               )
           ){
               $attribs['class'] = 'active';
           }
           return l($item['title'], $link_item['path'], $attribs);
       }
       

    [more ...]

    0 comments