You are here

function relation_ui_type_import_submit in Relation 7

File

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

Code

function relation_ui_type_import_submit($form, &$form_state) {
  relation_type_save($form_state['relation_type']);
  $relation_type = $form_state['relation_type']->relation_type;
  drupal_set_message(t('Successfully imported @relation_type', array(
    '@relation_type' => $relation_type,
  )));
  $form_state['redirect'] = 'admin/structure/relation/manage/' . $relation_type;
}