You are here

function bpn_flickr_form in Bulk File Nodes 7

Form constructor for the multi-step flickr form.

Parameters

string $node_type: The content type of the node.

See also

bpn_flickr_form_step_1()

bpn_flickr_form_step_2()

bpn_flickr_form_step_3()

1 string reference to 'bpn_flickr_form'
bpn_flickr_bulk_photo_nodes_method in modules/bpn_flickr/bpn_flickr.module
Implements hook_bpn_upload().

File

modules/bpn_flickr/bpn_flickr.module, line 38
Hooks and functions for the bpn_flickr module.

Code

function bpn_flickr_form($form, &$form_state, $node_type) {
  if (empty($form_state['step'])) {
    $form_state['step'] = 1;
  }
  $form_state['node_type'] = $node_type;
  $form_callback = 'bpn_flickr_form_step_' . $form_state['step'];
  if (function_exists($form_callback)) {
    return call_user_func($form_callback, $form, $form_state);
  }
}