function theme_quiz_admin_quizzes in Quiz 6.3
Same name and namespace in other branches
- 8.4 quiz.admin.inc \theme_quiz_admin_quizzes()
- 6.6 quiz.admin.inc \theme_quiz_admin_quizzes()
- 6.4 quiz.admin.inc \theme_quiz_admin_quizzes()
- 6.5 quiz.admin.inc \theme_quiz_admin_quizzes()
- 7 quiz.admin.inc \theme_quiz_admin_quizzes()
- 7.4 quiz.admin.inc \theme_quiz_admin_quizzes()
Theme the admin quizzes table.
Parameters
$results: As returned by _quiz_get_quizzes().
1 theme call to theme_quiz_admin_quizzes()
- quiz_admin_quizzes in ./
quiz.admin.inc - Displays the quizzes by title with a link to the appropriate results for that specific quiz.
File
- ./
quiz.admin.inc, line 729 - Administrator interface for Quiz module.
Code
function theme_quiz_admin_quizzes($results) {
$output = '';
$rows = array();
while (list($key, $result) = each($results)) {
$rows[] = array(
l($result['title'], 'admin/quiz/' . $result['nid'] . '/view'),
check_plain($result['name']),
format_date($result['created'], 'small'),
);
}
$header = array(
t('@quiz title', array(
'@quiz' => QUIZ_NAME,
)),
t('Created by'),
t('Created on'),
);
if (!empty($rows)) {
$output .= theme('table', $header, $rows);
}
else {
$output .= t('No @quizzes found.', array(
'@quiz' => QUIZ_NAME,
));
}
return $output;
}