You are here

function _noderelationships_child_node_form_submit in Node Relationships 6

Submit handler for the child node form.

1 call to _noderelationships_child_node_form_submit()
_noderelationships_child_node_form_submit_proxy in ./noderelationships.module
Proxy function to invoke the submit handler for the child node form.

File

./noderelationships.pages.inc, line 775
Implementation of user land pages.

Code

function _noderelationships_child_node_form_submit($form, &$form_state) {

  // Read the node title from fresh node so that modules such as Automatic Node
  // Titles [1] can do their own job, and then we can get the resulting title.
  // [1] http://drupal.org/project/auto_nodetitle
  // Also, clear the static storage of node_load() because it could have been
  // executed by another module during this page request, which would bring us
  // a non-updated version of the node.
  $node = node_load($form_state['nid'], NULL, TRUE);
  modalframe_close_dialog(array(
    'operation' => 'updateSingleValue',
    'value' => $node->title . ' [nid:' . $form_state['nid'] . ']',
  ));
}