function party_edit_form_submit in Party 7
Same name and namespace in other branches
- 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:
- party_edit_form_submit() - builds the Party object and attaches field API field values.
- party_data_set_attach_form_submit() - saves all the attached entities.
- party_edit_form_save() - updates party label.
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']);
}