tripal_fields_layout.module 788 B

12345678910111213141516171819202122232425
  1. <?php
  2. /**
  3. * Implements hook_form_FORM_ID_alter().
  4. */
  5. function tripal_fields_layout_form_field_ui_display_overview_form_alter(&$form, &$form_state) {
  6. $form['tripal_fields'] = array(
  7. '#type' => 'fieldset',
  8. '#title' => 'Biological Data Layout',
  9. '#collapsible' => TRUE,
  10. '#collapsed' => TRUE,
  11. );
  12. $form['tripal_fields']['new_pane'] = array(
  13. '#type' => 'textfield',
  14. '#title' => 'Add a new pane',
  15. '#description' => 'Panes can be used to organize related fields. You may
  16. create as many panes as desired. Once a pane is created you can use
  17. the interface above to move fields into an appropriate pane. '
  18. );
  19. $form['tripal_fields']['new_pane_button'] = array(
  20. '#type' => 'button',
  21. '#name' => 'new_pane_button',
  22. '#value' => 'Add',
  23. );
  24. }