Tripal Plant PopGen Submit
page_1_ajax.php File Reference

Go to the source code of this file.

Functions

 tpps_authors_callback (array $form, array &$form_state)
 
 tpps_organism_callback (array $form, array &$form_state)
 
 tpps_pub_status (array $form, array $form_state)
 

Detailed Description

Defines the ajax functions necessary for the first page of the form.

Definition in file page_1_ajax.php.

Function Documentation

◆ tpps_authors_callback()

tpps_authors_callback ( array  $form,
array &  $form_state 
)

Ajax callback for the secondary authors fieldset.

Indicates the element to be updated when the add or remove secondary authors buttons are clicked.

Parameters
array$formThe form that needs to be updated.
array$form_stateThe state of the form that needs to be updated.
Returns
array The element in the form to be updated.

Definition at line 58 of file page_1_ajax.php.

58  {
59  return $form['publication']['secondaryAuthors'];
60 }

◆ tpps_organism_callback()

tpps_organism_callback ( array  $form,
array &  $form_state 
)

Ajax callback for the organism fieldset.

Indicates the element to be updated when the add or remove organism buttons are clicked.

Parameters
array$formThe form that needs to be updated.
array$form_stateThe state of the form that needs to be updated.
Returns
array The element in the form to be updated.

Definition at line 40 of file page_1_ajax.php.

40  {
41  return $form['organism'];
42 }

◆ tpps_pub_status()

tpps_pub_status ( array  $form,
array  $form_state 
)

Ajax callback for the publication status field.

This function indicates the element to be updated after the publication status field has been changed.

Parameters
array$formThe form that needs to be updated.
array$form_stateThe state of the form that needs to be updated.
Returns
array The element in the form to be updated.

Definition at line 22 of file page_1_ajax.php.

22  {
23  return $form['publication']['year'];
24 }