original_string: public static function remove(\core\event\base $event) {
          global $DB;
  
          $DB->delete_records(self::$table, array('cmid' => $event->contextinstanceid));
      }
code: public static function remove(\core\event\base $event) {
          global $DB;
  
          $DB->delete_records(self::$table, array('cmid' => $event->contextinstanceid));
      }
code_tokens: public static function remove ( \ core \ event \ base $ event ) { global $ DB ; $ DB -> delete_records ( self :: $ table , array ( 'cmid' => $ event -> contextinstanceid ) ) ; }
docstring: Remove record when course module is deleted.
  
  @param \core\event\base $event
docstring_tokens: Remove record when course module is deleted .