function answers_list in Answers 5.2
1 string reference to 'answers_list'
- answers_menu in ./
answers.module - Implementation of hook_menu().
File
- ./
answers.module, line 250 - Enables the creation of question nodes that can be answered by posting answer nodes.
Code
function answers_list() {
$ansset = 'active';
if ($_GET['uans'] == 1) {
$ansset = '';
$unanset = 'active';
$filteranswered = TRUE;
}
$tabs = '<h1 class="title">Quests list</h1><div class="tabs"><ul class="tabs primary">
<li ' . $ansset . '>' . l("All Quests", "quest/list", array(
'class' => $ansset,
)) . '</li>
<li ' . $unanset . '>' . l("Show Unanswered Only", "quest/list", array(
'class' => $unanset,
), "&uans=1") . '</li>
</ul></div>';
return $o = $tabs . theme('answers_list', $filteranswered);
}