function multi_node_add_frame in Multi Node Add 6
Presents the node creating row form.
1 string reference to 'multi_node_add_frame'
- multi_node_add_frame_page in ./
multi_node_add.module - Shows the node-tabled form in an iframe
File
- ./
multi_node_add.module, line 210 - This module allows to create multiple nodes using one page, one form submission. Uses AJAX.
Code
function multi_node_add_frame($form_state = array(), $fields = array(
'title',
)) {
$type = str_replace('-', '_', arg(2));
$fields = explode(',', $fields);
$form = multi_node_widget_form($type, $fields);
$form['#attributes'] = array(
'name' => 'nodeform',
);
$form['createnodes'] = array(
'#weight' => 99,
'#type' => 'submit',
'#value' => t('Create'),
);
return $form;
}