function quiz_stats_get_basic_stats in Quiz 7
Same name and namespace in other branches
- 8.6 modules/quiz_stats/quiz_stats.admin.inc \quiz_stats_get_basic_stats()
- 8.4 modules/quiz_stats/quiz_stats.admin.inc \quiz_stats_get_basic_stats()
- 8.5 modules/quiz_stats/quiz_stats.admin.inc \quiz_stats_get_basic_stats()
- 6.4 includes/quiz_stats/quiz_stats.admin.inc \quiz_stats_get_basic_stats()
- 7.6 modules/quiz_stats/quiz_stats.admin.inc \quiz_stats_get_basic_stats()
- 7.4 includes/quiz_stats/quiz_stats.admin.inc \quiz_stats_get_basic_stats()
- 7.5 modules/quiz_stats/quiz_stats.admin.inc \quiz_stats_get_basic_stats()
- 6.x modules/quiz_stats/quiz_stats.admin.inc \quiz_stats_get_basic_stats()
Returns statistics for all available quizzes
Parameters
$uid: User id
Return value
HTML table
1 string reference to 'quiz_stats_get_basic_stats'
- quiz_stats_menu in includes/
quiz_stats/ quiz_stats.module - Implements hook_menu().
File
- includes/
quiz_stats/ quiz_stats.admin.inc, line 54 - Administration file for Quiz stats Module
Code
function quiz_stats_get_basic_stats($uid = 0) {
$results = _quiz_get_quizzes($uid);
return empty($results) ? t('No Statistics found.') : theme('quiz_stats_get_basic_stats', array(
'results' => $results,
));
}