uninstall.php 355 B

12345678910111213
  1. <?php
  2. //Removing extra fields
  3. $extra_fields = array('exam_room', 'exam_schedule', 'exam_password');
  4. foreach($extra_fields as $extra) {
  5. $extra_field = new ExtraField('user');
  6. $field_info = $extra_field->get_handler_field_info_by_field_variable($extra);
  7. if (isset($field_info['id'])) {
  8. $extra_field->delete($field_info['id']);
  9. }
  10. }