I've a custom phptemplate_links() function in my template.php. It's no problem to call this one, and it works like a charm.

But now I'm writing a new function combining a lot of seperate function output and style.

Is it possible to call the themed phptemplate_links() function in a second function?

I've tried adding it to the output:

$output .= theme('links', $primary_links, array('class' => 'links primary-links'))
return $output;
$output .= theme('links', $primary_links)
return $output;

But this won't work and returns nothing...

Is there a way to call functions inside functions, or am I barking up the wrong tree here?

Hope someone can help me in to the right direction.

Comments

Jeff Burnz’s picture

What are you trying to do? Focus on that rather than what you have done, it makes it easier for use to understand the issue.

fivehimself’s picture

I'm trying to write a function that includes not only some static links I hard coded into the function, but also a list of Primary and Secondary links.