Closed (fixed)
Project:
Service links
Version:
6.x-1.0
Component:
Documentation
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
1 Jun 2009 at 17:17 UTC
Updated:
21 Jun 2009 at 16:20 UTC
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 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;
}
Comments
Comment #1
TheCrow commentedfixed in the last commit