You are here

function multi_node_add_frame_status in Multi Node Add 7

Same name and namespace in other branches
  1. 6 multi_node_add.module \multi_node_add_frame_status()

Shows the status after node creation.

1 string reference to 'multi_node_add_frame_status'
multi_node_add_menu in ./multi_node_add.module
Implements hook_menu().

File

./multi_node_add.pages.inc, line 172
Contains the logic of the configuration form and the iframe-related codes.

Code

function multi_node_add_frame_status($node, $view) {
  if (empty($view)) {
    $page_content = t('The node is created. Title: %title , node id: !nid', array(
      '%title' => $node->title,
      '!nid' => l($node->nid, 'node/' . $node->nid, array(
        'attributes' => array(
          'target' => '_blank',
        ),
      )),
    ));
  }
  else {
    $page_content = node_view($node);
  }
  _multi_node_add_bare_page($page_content);
}