Posted By

abelb on 04/23/11


Tagged

php drupal drupal6 D6 preprocessfunction primarylinks


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

ivan747


Adding span to primary links in Drupal 6


 / Published in: PHP
 

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

  1. <?php
  2. function YOURTHEME_preprocess_page(&$vars) {
  3.  
  4. $links = $vars['primary_links'];
  5.  
  6. foreach ($links as $key => $link) {
  7. $links[$key]['html'] = true;
  8. $links[$key]['title'] = '<span>'. $link['title'] . '</span>';
  9. }
  10.  
  11. $vars['primary_links'] = $links;
  12. }
  13. ?>

Report this snippet  

You need to login to post a comment.