template.php for drupal 6

lentreprenaute - June 1, 2009 - 17:17
Project:Service links
Version:6.x-1.0
Component:Documentation
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed
Description

hi,

i tried to customize my theme with template.php but the source example isn't working for drupal 6. Can we have a new sample for the lasted version.

Thank
Florent

/**
* @file
* Example template.php for service_links.module
* Use

<?php
print $service_links
?>
to insert links in your node.tpl.php or you page.tpl.php file.
*/

function _phptemplate_variables($hook, $vars) {
switch($hook) {
case 'node':
case 'page':
if (module_exists('service_links')) {
$vars['service_links'] = theme('links', service_links_render($vars['node'], TRUE));
}
break;
}
return $vars;
}

#1

TheCrow - June 7, 2009 - 16:12
Status:active» fixed

fixed in the last commit

#2

System Message - June 21, 2009 - 16:20
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.