/[drupal]/contributions/modules/service_links/template.php
ViewVC logotype

Contents of /contributions/modules/service_links/template.php

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.3 - (show annotations) (download) (as text)
Thu Oct 11 17:24:08 2007 UTC (2 years, 1 month ago) by apsivam
Branch: MAIN
CVS Tags: DRUPAL-6--1-0, HEAD
Branch point for: DRUPAL-6--1, DRUPAL-6--2
Changes since 1.2: +3 -4 lines
File MIME type: text/x-php
#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