You are here

function relation_ui_edit_form in Relation 7

Relation edit form.

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

File

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

Code

function relation_ui_edit_form($form, &$form_state, $relation) {
  $form_state['relation'] = $relation;
  field_attach_form('relation', $relation, $form, $form_state);
  $form['actions']['#weight'] = 100;
  $form['actions']['save'] = array(
    '#type' => 'submit',
    '#value' => t('Save'),
  );
  return $form;
}