Can't get primary and secondary links to work with 6.x-1.x-dev
john54 - October 14, 2009 - 14:15
| Project: | FriendsElectric |
| Version: | 6.x-1.x-dev |
| Component: | Suggestions |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Description
I'm running Drupal 6.14
I've installed 6.x.1.x-dev friendselectric theme along with color_soc08-6.x-1.x-dev.
To avoid a fatal error I must delete or comment out the following from my page.tpl.php
<?php
$primary_links = phptemplate_menu_primary_links($primary_links);
?><?php
if (isset($primary_links)):
?><?php
print friendselectric_wrap_links($link, 2);
?>
<?php
foreach ($primary_links as $link):
?>
<?php
endforeach;
?>
<?php
endif;
?>
<?php
if (isset($secondary_links)):
?><?php
print friendselectric_wrap_links($link, 2);
?>
<?php
foreach (array_reverse($secondary_links) as $link):
?>
<?php
endforeach;
?>
<?php
endif;
?>This makes all work and eliminates the fatal error but of course I then have no primary or secondary links
Can anyone see in the above code what is causing the fatal error that returns the following message:
Fatal error: Call to undefined function phptemplate_menu_primary_links() in C:\wamp\www\drupal6\sites\all\Themes\friendselectric\page.tpl.php on line 27
From the above code the reference to line 27 is
<?php
$primary_links = phptemplate_menu_primary_links($primary_links);
?>Thanks Much,
