/ Published in: PHP

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?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; } ?>
URL: http://drupal.org/node/221382#comment-2271738
Comments
