You are here

function node_field_node_form_edit in Node Field 7.2

Add node fields to node edit form.

Changed node fields will be saved on hook_node_submit.

1 call to node_field_node_form_edit()
node_field_form_node_form_alter in ./node_field.module
Implements hook_form_alter().

File

includes/node_field.form.inc, line 13
Forms for node_field module.

Code

function node_field_node_form_edit(&$form, &$form_state) {
  $node = $form_state['node'];
  $node_fields = node_field_get_node_fields($node);
  if (empty($node_fields)) {
    return;
  }
  $form_state['node_fields'] = $node_fields;
  $form['node_fields'] = node_field_value_fields_form($node, $node_fields, $form_state);
}