--- faq.module.bak 2006-06-05 20:11:21.000000000 +0200
+++ faq.module 2006-06-05 20:10:12.000000000 +0200
@@ -105,7 +105,7 @@
$block['subject'] = t('FAQ Categories');
$block['content'] = '
' . "\n";
foreach($terms as $name => $tid){
- $block['content'] .= '- ' . $name . '
' . "\n";
+ $block['content'] .= '- '. l($name, 'faq/show/' . $tid) . '
' . "\n";
}
$block['content'] .= '
' . "\n";
}
@@ -216,7 +216,7 @@
$found = false;
$result = db_query('SELECT n.nid, n.title FROM {node} n, {term_node} t, {faq} f WHERE t.nid = n.nid AND f.fid = n.nid AND n.type="faq" AND n.status=1 AND t.tid = %d ORDER BY
f.weight, n.title', $term->tid);
- $output = '' . "\n";
+ $output = ''. l($term->name, 'faq/show/' . $term->tid) . '
' . "\n";
$output .= '' . "\n";
while($node = db_fetch_object($result)){
$node = node_prepare($node);
@@ -226,7 +226,7 @@
$edit = ' (edit)';
}
- $output .= '- ' . $node->title . '' . $edit . '
';
+ $output .= '- '. l($node->title, 'faq/show/' . $term->tid . '#q_' . $node->nid) . $edit . '
';
$found = true;
}
$output .= '
' . "\n";
@@ -256,7 +256,7 @@
$edit = 'edit';
}
- $links .= '' . $node->title . '' . ($edit == '' ? '' : ' (' . $edit . ') ') . '';
+ $links .= ''. l($node->title, 'faq/show/' . $term->tid . '#q_' . $node->nid) . ($edit == '' ? '' : ' (' . $edit . ') ') . '';
//Add the voting form if enabled and applicable. Hacky, I know.
if($node->voting && function_exists('voting_control_node')){