You are here

function makemeeting_choice_js in Make Meeting Scheduler 7.2

Ajax callback in response to new choices being added to the form.

This returns the new page content to replace the page content made obsolete by the form submission.

2 string references to 'makemeeting_choice_js'
makemeeting_field_widget_form in ./makemeeting.field.inc
Implements hook_field_widget_form().
_makemeeting_choice_form in ./makemeeting.field.inc
Helper function to construct a row of the widget form

File

./makemeeting.field.inc, line 588
This file is mostly about the field configuration.

Code

function makemeeting_choice_js($form, $form_state) {

  // Get the element from the parents of the clicked button
  $element = drupal_array_get_nested_value($form, $form_state['clicked_button']['#parents']);
  return $element['choices_wrapper'];
}