function theme_multi_node_add_frame in Multi Node Add 6
Renders the node form snippets in one row.
1 string reference to 'theme_multi_node_add_frame'
- multi_node_add_theme in ./
multi_node_add.module - Implementation of hook_theme().
File
- ./
multi_node_add.module, line 336 - This module allows to create multiple nodes using one page, one form submission. Uses AJAX.
Code
function theme_multi_node_add_frame($form) {
$header = array();
$rows = array();
foreach ($form as $k => $v) {
if (is_array($v) && !empty($v['#title'])) {
$header[] = '';
$rows[0][] = drupal_render($v);
unset($form[$k]);
}
}
$header[] = '';
$rows[0][] = drupal_render($form['createnodes']);
unset($form['createnodes']);
return theme('table', $header, $rows) . drupal_render($form);
}