Return to Snippet

Revision: 44728
at April 16, 2011 09:45 by focal55


Initial Code
<?php
/**
 * Implementation of phptemplate_preprocess_page()
 * Variables available in page.tpl.php can be overriden from this function.
 * They are referenced in the array $vars
 * 
 * This example shows changing a title of a link in the primary nav menu
 * I suggest print_r() the $vars array and explore its contents
 * (this snippet belongs in the template.php file and remember to clear your cache
 */
function phptemplate_preprocess_page(&$vars) {
  $vars['primary_links']['foobar']['title'] = 'My Member Page';
}
?>

Initial URL

                                

Initial Description
This goes in your template.php file

Initial Title
Drupal 6: Change Menu Link Title Dynamically

Initial Tags
links, drupal

Initial Language
PHP