original_string: public static function hook_course_module_deleted(stdClass $cm) {
          global $DB;
          $DB->delete_records(course_module_competency::TABLE, array('cmid' => $cm->id));
      }
code: public static function hook_course_module_deleted(stdClass $cm) {
          global $DB;
          $DB->delete_records(course_module_competency::TABLE, array('cmid' => $cm->id));
      }
code_tokens: public static function hook_course_module_deleted ( stdClass $ cm ) { global $ DB ; $ DB -> delete_records ( course_module_competency :: TABLE , array ( 'cmid' => $ cm -> id ) ) ; }
docstring: 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
docstring_tokens: Action to perform when a course module is deleted .