function _addanother_get_node_from_form_state

cis7 addanother.module _addanother_get_node_from_form_state(&$form_state)
cle7 addanother.module _addanother_get_node_from_form_state(&$form_state)
elmsmedia7 addanother.module _addanother_get_node_from_form_state(&$form_state)
icor7 addanother.module _addanother_get_node_from_form_state(&$form_state)
meedjum_blog7 addanother.module _addanother_get_node_from_form_state(&$form_state)
mooc7 addanother.module _addanother_get_node_from_form_state(&$form_state)

Internal helper function to get the node from a $form_state

2 calls to _addanother_get_node_from_form_state()
addanother_node_form_message_submit in sites/all/modules/ulmus/addanother/addanother.module
Submit handler if the normal submit button was pressed, however the node has the 'message' feature enabled.
addanother_node_form_submit in sites/all/modules/ulmus/addanother/addanother.module
Submit handler for the 'Save and add another' button. This allows a redirect to be set if this was the button pressed.


sites/all/modules/ulmus/addanother/addanother.module, line 178
Presents users with an option to create another node of the same type after a node is added.


function _addanother_get_node_from_form_state(&$form_state) {
  // Check the node is in the form state - if it isn't, something has gone very
  // wrong... Best not to continue
  if (!isset($form_state['node'])) {
    return FALSE;

  // Return the node
  return $form_state['node'];



Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/ in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/
The website encountered an unexpected error. Please try again later.