public static function hook_course_module_deleted(stdClass $cm) {
        global $DB;
        $DB->delete_records(course_module_competency::TABLE, array('cmid' => $cm->id));
    }
public static function hook_course_module_deleted(stdClass $cm) {
        global $DB;
        $DB->delete_records(course_module_competency::TABLE, array('cmid' => $cm->id));
    }
public static function hook_course_module_deleted ( stdClass $ cm ) { global $ DB ; $ DB -> delete_records ( course_module_competency :: TABLE , array ( 'cmid' => $ cm -> id ) ) ; }
Action to perform when a course module is deleted.

Do not call this directly, this is reserved for core use.

@param stdClass $cm The CM object.
@return void
Action to perform when a course module is deleted .