You are here

function relation_ui_type_import in Relation 7

Page callback to import a relation.

1 string reference to 'relation_ui_type_import'
relation_ui_menu in ./relation_ui.module
Implements hook_menu().

File

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

Code

function relation_ui_type_import($form) {
  $form['name'] = array(
    '#type' => 'textfield',
    '#title' => t('Relation type name'),
    '#description' => t('Enter the machine name to use for this relation type if it is different from the relation type to be imported. Leave blank to use the name of the relation type below.'),
  );
  $form['relation_type'] = array(
    '#type' => 'textarea',
    '#rows' => 10,
  );
  $form['import'] = array(
    '#type' => 'submit',
    '#value' => t('Import'),
  );
  return $form;
}