MDL-31890 added core_grade_get_gradingform_instances web service
function