function themename_preprocess in Service links 6
Same name and namespace in other branches
- 6.2 template.php \themename_preprocess()
- 7.2 template.php \themename_preprocess()
If something don't work well try this
File
- ./
template.php, line 24 - Example template.php for service_links.module (put the name of your theme instead of 'themename') Use <?php print $service_links ?> to insert links in your node.tpl.php or you page.tpl.php file.
Code
function themename_preprocess(&$vars, $hook) {
switch ($hook) {
case 'node':
$vars['service_links'] = theme('links', service_links_render($vars['node'], TRUE));
break;
case 'page':
$vars['service_links'] = theme('links', service_links_render($vars['node'], TRUE));
break;
}
}