You are here

function party_edit_form_submit in Party 7

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

Submit handler for the the Party edit form.

The work of saving the party is split over 3 submit handlers for this form:

This is in order to allow plugins to use all of the party data available when generating the name label.

2 string references to 'party_edit_form_submit'
party_edit_form_form in plugins/content_types/party_edit_form.inc
Form
party_form in ./party.pages.inc
Party edit form.

File

./party.pages.inc, line 111
party.pages.inc

Code

function party_edit_form_submit($form, &$form_state) {
  field_attach_submit('party', $form['#party'], $form, $form_state);
  party_save($form['#party']);
}