original_string: public static function hook_cohort_deleted(\stdClass $cohort) {
          global $DB;
          $DB->delete_records(template_cohort::TABLE, array('cohortid' => $cohort->id));
      }
code: public static function hook_cohort_deleted(\stdClass $cohort) {
          global $DB;
          $DB->delete_records(template_cohort::TABLE, array('cohortid' => $cohort->id));
      }
code_tokens: public static function hook_cohort_deleted ( \ stdClass $ cohort ) { global $ DB ; $ DB -> delete_records ( template_cohort :: TABLE , array ( 'cohortid' => $ cohort -> id ) ) ; }
docstring: Action to perform when a cohort is deleted.
  
  Do not call this directly, this is reserved for core use.
  
  @param \stdClass $cohort The cohort object.
  @return void
docstring_tokens: Action to perform when a cohort is deleted .