You are here

function field_collection_item_form_submit in Field collection 7

Submit callback that permanently saves the changes to the entity.

File

./field_collection.pages.inc, line 64
Provides the field collection item view / edit / delete pages.

Code

function field_collection_item_form_submit($form, &$form_state) {
  $field_collection_item = field_collection_item_form_submit_build_field_collection($form, $form_state);
  $field_collection_item
    ->save();
  drupal_set_message(t('The changes have been saved.'));
  $form_state['redirect'] = $field_collection_item
    ->path();
}