function themename_preprocess_page in Service links 6
Same name and namespace in other branches
- 6.2 template.php \themename_preprocess_page()
- 7.2 template.php \themename_preprocess_page()
@file 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.
File
- ./
template.php, line 9 - 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_page(&$vars) {
if (module_exists('service_links')) {
$vars['service_links'] = theme('links', service_links_render($vars['node'], TRUE));
}
}