Hello,

I am somewhat new to drupal and I have a simple development question. I am trying to use a hook to the image gallery module. Specifically, I'm trying to add a gallery through php code. When I went through the source code of the module, I saw this:
> function image_gallery_admin_add($edit = array()) {
> if ($_POST['op'] == t('Delete') || $_POST['confirm']) {
> return drupal_get_form('image_gallery_confirm_delete', $edit['tid']);
> }
>
> return drupal_get_form('image_gallery_admin_form', $edit);
> }

I am confused. Where is the "meat" of adding an image gallery? All it seems to do is return a drupal page.

Comments

sun’s picture

Status: Active » Closed (won't fix)

Sorry, unfortunately this request is way too specific. Please have a look at the issue queue - Image maintainers are buried already. You might want to try to get further support at http://drupal.org/support. Additionally, the answer to your question might be covered in the handbooks at http://drupal.org/handbook/modules/image already.
If you were able to solve this issue on your own in the meantime, you might want to add the involved steps to this closed issue, so other users searching for a similar solution might find it.