Parent Directory
|
Revision Log
|
Revision Graph
#166899 by jakemonO StumbleUpon patch by NaX
| 1 | <?php |
| 2 | // $Id: template.php,v 1.2 2007/02/25 21:19:36 frjo Exp $ |
| 3 | |
| 4 | /** |
| 5 | * @file |
| 6 | * Example template.php for service_links.module |
| 7 | * Use <?php print $service_links ?> to insert links in your node.tpl.php or you page.tpl.php file. |
| 8 | */ |
| 9 | |
| 10 | function _phptemplate_variables($hook, $vars) { |
| 11 | switch($hook) { |
| 12 | case 'node': |
| 13 | case 'page': |
| 14 | if (module_exists('service_links')) { |
| 15 | $vars['service_links'] = theme('links', service_links_render($vars['node'], TRUE)); |
| 16 | } |
| 17 | break; |
| 18 | } |
| 19 | return $vars; |
| 20 | } |
| ViewVC Help | |
| Powered by ViewVC 1.1.2 |