You are here

function relation_ui_edit_form_submit in Relation 7

File

./relation_ui.module, line 782
Provide administration interface for relation type bundles.

Code

function relation_ui_edit_form_submit($form, &$form_state) {
  $relation = $form_state['relation'];
  entity_form_submit_build_entity('relation', $relation, $form, $form_state);
  $rid = relation_save($relation);
  $relation_uri = entity_uri('relation', $relation);
  if ($rid) {
    $form_state['redirect'] = $relation_uri['path'];
  }
}