Return to Snippet

Revision: 45069
at April 23, 2011 07:45 by abelb


Initial Code
<?php
function YOURTHEME_preprocess_page(&$vars) {
   
    $links = $vars['primary_links'];
   
    foreach ($links as $key => $link) {
        $links[$key]['html'] = true;
        $links[$key]['title'] = '<span>'. $link['title'] . '</span>';
    }
   
    $vars['primary_links'] = $links;
}
?>

Initial URL
http://drupal.org/node/221382#comment-2271738

Initial Description

                                

Initial Title
Adding span to primary links in Drupal 6

Initial Tags
php, drupal

Initial Language
PHP