function multi_node_add_frame_page in Multi Node Add 7
Same name and namespace in other branches
- 6 multi_node_add.module \multi_node_add_frame_page()
Shows the node-tabled form in an iFrame.
1 string reference to 'multi_node_add_frame_page'
- multi_node_add_menu in ./
multi_node_add.module - Implements hook_menu().
File
- ./
multi_node_add.pages.inc, line 154 - Contains the logic of the configuration form and the iframe-related codes.
Code
function multi_node_add_frame_page($type) {
global $user;
$node = (object) array(
'uid' => $user->uid,
'name' => isset($user->name) ? $user->name : '',
'type' => $type,
'language' => LANGUAGE_NONE,
);
$form_state = array();
$form_state['build_info'] = array();
$form_state['build_info']['args'] = array(
$node,
);
form_load_include($form_state, 'inc', 'node', 'node.pages');
_multi_node_add_bare_page(drupal_build_form($type . '_node_form', $form_state));
}