Fix for Trying to override theme_menu_item_link

  1. <?php
  2. function phptemplate_menu_item_link($link) {
  3.   if (empty($link['localized_options'])) {
  4.     $link['localized_options'] = array('html'=>TRUE);
  5.   }
  6.  
  7.   $thetitle = '<span>';
  8.   $thetitle .= $link['title'];
  9.   $thetitle .= '</span>';
  10.  
  11.  
  12.   return l($thetitle, $link['href'], $link['localized_options']);
  13. }
AttachmentSize
Drupal-crazy.png67.26 KB

Submit Fix

Any tags you'd like to associate with your code, delimitered by commas (example: Views, CCK, Module, etc).
Select the syntax highlighting mode to use.