You are here

function twilio_twiml_manager_form_submit in Twilio 7

Submit callback for TwiML Manager form.

File

twilio_twiml/twilio_twiml.admin.inc, line 79
Administrative forms section

Code

function twilio_twiml_manager_form_submit($form, &$form_state) {

  // Prep vars.
  $values = $form_state['values'];

  // Create entry in DB.
  if ($form_state['triggering_element']['#name'] == 'save') {
    twilio_twiml_create($values);
  }
  elseif ($form_state['triggering_element']['#name'] == 'update') {
    twilio_twiml_update($values);
  }
}