You are here

function entity_metadata_form_node in Entity API 7

Callback to get the form of a node.

1 string reference to 'entity_metadata_form_node'
_entity_info_add_metadata in ./entity.module
Adds metadata and callbacks for core entities to the entity info.

File

modules/callbacks.inc, line 1001
Provides various callbacks for the whole core module integration.

Code

function entity_metadata_form_node($node) {

  // Pre-populate the form-state with the right form include.
  $form_state['build_info']['args'] = array(
    $node,
  );
  form_load_include($form_state, 'inc', 'node', 'node.pages');
  return drupal_build_form($node->type . '_node_form', $form_state);
}