Import to Shazamgallery albums

tomsun - July 9, 2006 - 12:31
Project:image_import
Version:HEAD
Component:Code
Category:feature request
Priority:minor
Assigned:Unassigned
Status:active
Description

Hi,

I am converting a small community site to be Drupal based (version 4.7.2).
After considering the different options available for photo gallery handling (http://drupal.org/node/58685) I decided to stick with the image.module, with shazamgallery.module (slightly changed) on top. The reason for that is I wanted both taxonomy terms for images AND a way for the users to create personal albums. Furthermore I wanted the images to be nodes, and to be available in Rich Text Editors (done with Img_assist.module).

Anyway, this module was perfect to use when transfering user photos from the old site to Drupal. Except it currently (CVS version 06.06.2006) lacks support for the shazamgallery albums. The form_alter done by shazamgallery.module works also in image_import forms, but the info is not saved.

Without knowing too much of the internals of Drupal I tried to follow how taxonomy terms are implemented in image_import, added/edited a few lines (tagged with /* EDITED */) and with a bit of luck I got it working!

In case it helps anyone else I'm posting the edited module here - sorry, don't know how to create a patch. USE IT AT YOUR OWN RISK - I have only tried it on my single site (and successfully uploaded a couple thousands of photos) - but don't know what happens if you use different versions of Drupal and different module bases...

Thanks for a great module!

// Tom

AttachmentSize
image_import.module45.59 KB
 
 

Drupal is a registered trademark of Dries Buytaert.