function node_gallery_imagefield_import_form in Node Gallery 6.3
Builds the form used for imagefield_import integration.
Parameters
$gallery: A populated gallery node object.
Return value
A FAPI form array.
File
- ./
node_gallery.pages.inc, line 917 - Handles displaying of Node gallery pages.
Code
function node_gallery_imagefield_import_form($gallery) {
// Load up the form from imagefield_import
$form_state = array();
$form = drupal_retrieve_form('imagefield_import_form', $form_state);
// Add our gid
$form['files']['gid']['#tree'] = FALSE;
$form['files']['gid'] = array(
'#type' => 'value',
'#value' => $gallery->gid,
);
return $form;
}