Coding convention and replace some api_get_course_id() with api_get_course_int_id()