function opigno_statistics_app_present_course_general_statistics in Opigno Statistics App 7
Present course general statistics
Output example: array( 'course_progress_percentage' => 22 'quizz_completion_percentage' => 15 );
Parameters
int $course_nid:
int $month_year:
boolean $filter_month:
Return value
array
1 call to opigno_statistics_app_present_course_general_statistics()
- opigno_statistics_app_course_statistics_page in includes/
group/ course/ course.pages.inc
File
- includes/
group/ course/ presenters.inc, line 69
Code
function opigno_statistics_app_present_course_general_statistics($course_nid, $month_year, $filter_month) {
return array(
'course_progress_percentage' => round(opigno_statistics_app_query_course_course_progress_percentage($course_nid, $month_year, $filter_month) * 100),
'quizz_completion_percentage' => round(opigno_statistics_app_query_course_quiz_completion_percentage($course_nid, $month_year, $filter_month) * 100),
);
}