title: How to add cohort to a course programmatically?
body: <p>I want to add addcohort to a course programmatically in moodle. I have gone through the documentation but did find away out this there. Is there any function like <code>chort_add_course() with parameters as course id and chort id</code>?</p>