My current template.php is
<?php
function _phptemplate_variables($hook, $vars) {
$variables = array();
if ($hook == 'node') {
if (module_exist('taxonomy')) {
foreach (taxonomy_get_vocabularies($vars['node']->type) as $vid=>$vocab) {
foreach (taxonomy_node_get_terms_by_vocabulary($vars['node']->nid, $vid) as $term) {
if ($vocab->tags) {
$tag_links[] = l($term->name, taxonomy_term_path($term), array('rel' => 'tag', 'title' => $term->description));
}
else {
$term_links[] = l($term->name, taxonomy_term_path($term), array('rel' => 'tag', 'title' => $term->description));
$hangikaredensin = $term->name;
}
}
}
}
else {
$term_links = array();
$tag_links = array();
}
$variables['terms'] = theme('links', $term_links);
$variables['hangikaredensin'] = $hangikaredensin;
$variables['tags'] = theme('links', $tag_links);
}
return $variables;
}
?>
and I need to use these codes to show links with vote_story_link <?php
// $Id: template.php,v 1.4 2006/08/02 11:18:12 frjo Exp $
function _phptemplate_variables($hook, $vars) {
switch($hook) {
case 'node':
$vars['storylink_url'] = check_url($vars['node']->vote_storylink_url);
if (arg(1) != 'add' && arg(1) != 'edit') {