You are here

function themename_preprocess_node in Service links 6

Same name and namespace in other branches
  1. 6.2 template.php \themename_preprocess_node()
  2. 7.2 template.php \themename_preprocess_node()

File

./template.php, line 15
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_node(&$vars) {
  if (module_exists('service_links')) {
    $vars['service_links'] = theme('links', service_links_render($vars['node'], TRUE));
  }
}