You are here

function bulk_photo_nodes_page in Bulk File Nodes 7

Page callback: Displays the first step of the bulk photo node upload form.

In case the user would like to see the normal node/add form, simply supply a query string of ?override=1

Parameters

string $node_type: The content type of the node, used in case of an override.

Return value

array A render array for the page.

See also

bulk_photo_nodes_menu_alter()

1 string reference to 'bulk_photo_nodes_page'
bulk_photo_nodes_menu_alter in ./bulk_photo_nodes.module
Implements hook_menu_alter().

File

./bulk_photo_nodes.module, line 219
hooks and helper functions for bulk photo node.

Code

function bulk_photo_nodes_page($node_type) {
  if (bulk_photo_nodes_is_bpn_add_page($node_type)) {
    return bulk_photo_nodes_page_get($node_type);
  }
  else {
    $form = node_add($node_type);
    return $form;
  }
}