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 |
Jump to:
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
?>*/
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
fixed in the last commit
#2
Automatically closed -- issue fixed for 2 weeks with no activity.