Tripal Plant PopGen Submit
page_3_ajax.php
Go to the documentation of this file.
1 <?php
2 
22 function tpps_accession_pop_group(array &$form, array $form_state) {
23  $commands = array();
24  $species_id = $form_state['triggering_element']['#parents'][1];
25  $output = drupal_render($form['tree-accession'][$species_id]['coord-format']);
26  $output .= drupal_render($form['tree-accession'][$species_id]['pop-group']);
27  $output .= drupal_render($form['tree-accession'][$species_id]['exact_coords']);
28  $output .= drupal_render($form['tree-accession'][$species_id]['coord_precision']);
29 
30  $commands[] = ajax_command_replace("#population-mapping-$species_id", $output);
31  $commands[] = ajax_command_invoke('', 'mapButtonsClick', array('.map-button'));
32  return array(
33  '#type' => 'ajax',
34  '#commands' => $commands,
35  );
36 }
37 
53 function tpps_study_location_map_ajax(array $form, array $form_state) {
54  return $form['study_location']['map-button'];
55 }
56 
71 function tpps_accession_multi_file(array &$form, array $form_state) {
72  return $form['tree-accession'];
73 }
74 
89 function tpps_update_locations(array $form, array &$form_state) {
90  return $form['study_location'];
91 }
tpps_accession_pop_group(array &$form, array $form_state)
Definition: page_3_ajax.php:22
tpps_update_locations(array $form, array &$form_state)
Definition: page_3_ajax.php:89
tpps_study_location_map_ajax(array $form, array $form_state)
Definition: page_3_ajax.php:53
tpps_accession_multi_file(array &$form, array $form_state)
Definition: page_3_ajax.php:71