template.php in Service links 5
Same filename and directory in other branches
Example template.php for service_links.module Use <?php print $service_links ?> to insert links in your node.tpl.php or you page.tpl.php file.
File
template.phpView source
<?php
/**
* @file
* Example template.php for service_links.module
* Use <?php 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;
}
Functions
Name![]() |
Description |
---|---|
_phptemplate_variables | @file Example template.php for service_links.module Use <?php print $service_links ?> to insert links in your node.tpl.php or you page.tpl.php file. |