function bpn_upload_form in Bulk File Nodes 7
Form constructor multi-step bulk photo nodes.
See also
bpn_upload_form_step_1_submit()
1 string reference to 'bpn_upload_form'
- bpn_upload_bulk_photo_nodes_method in modules/
bpn_upload/ bpn_upload.module - Implements hook_bpn_upload().
File
- modules/
bpn_upload/ bpn_upload.module, line 24 - Hooks and functions for the bpn_upload module.
Code
function bpn_upload_form($form, &$form_state, $node_type) {
if (empty($form_state['step'])) {
$form_state['step'] = 1;
}
if (empty($form_state['node_type'])) {
$form_state['node_type'] = $node_type;
}
$form_callback = 'bpn_upload_form_step_' . $form_state['step'];
if (function_exists($form_callback)) {
return $form_callback($form, $form_state);
}
return $form;
}