install.php 685 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. //Adding extra fields
  3. $extra_field = new ExtraField('user');
  4. $params = array(
  5. 'field_type' => ExtraField::FIELD_TYPE_TEXT,
  6. 'field_variable' => 'exam_room',
  7. 'field_display_text' => 'Aula',
  8. 'field_visible' => false
  9. );
  10. $extra_field->save($params);
  11. $params = array(
  12. 'field_type' => ExtraField::FIELD_TYPE_TEXT,
  13. 'field_variable' => 'exam_schedule',
  14. 'field_display_text' => 'Horario',
  15. 'field_visible' => false
  16. );
  17. $extra_field->save($params);
  18. $params = array(
  19. 'field_type' => ExtraField::FIELD_TYPE_TEXT,
  20. 'field_variable' => 'exam_password',
  21. 'field_display_text' => 'Password',
  22. 'field_visible' => false
  23. );
  24. $extra_field->save($params);