You are here

function party_attached_entity_edit_form_submit in Party 7

Same name and namespace in other branches
  1. 8.2 party.pages.inc \party_attached_entity_edit_form_submit()

Submit handler for the data set edit form.

1 string reference to 'party_attached_entity_edit_form_submit'
party_attached_entity_edit_form in ./party.pages.inc
Form to edit or create an attached entity.

File

./party.pages.inc, line 406
party.pages.inc

Code

function party_attached_entity_edit_form_submit($form, &$form_state) {

  // Get the data set controller
  $data_set_controller = reset($form['#data_set_controllers']);

  // Redirect to the set piece.
  $form_state['redirect'] = 'party/' . $data_set_controller
    ->getParty()->pid . '/' . $data_set_controller
    ->getDataInfo('path element');
}