[development] Historic Monument Module

Chris McGinlay chris at ascentsoftware.org.uk
Thu Dec 7 20:52:25 UTC 2006


On Thursday 07 December 2006 10:32, Robert Douglass wrote:
Thanks,

I'm currently developing for 4.7. I'll review the API for 5.0 and evaluate 
CCK. From what you say, I'm sensing there is no intuitive way of 'selectively 
overriding' an existing module via form_alter - fair enough, I don't want to 
fight against the API!

Chris

> Chris,
>
> sorry not to answer your question, but have you considered using CCK +
> imagefield + date? It might save you some time.
>
> As to your question, form_alter is blunt in that respect. It knows that
> you have an image-node form. What Drupal version are you developing for?
> 4.7 or 5.0? You have more options in 5.0.
>
> Chris McGinlay wrote:
> > Hi,
> >
> > I am currently developing a module aimed at custom display of images
> > associated with historic monuments.
> >
> > I have a problem with the way I have extended the image.module using
> > hook_form_alter()
> >
> > The module is here:
> > http://drupal.org/project/monument
> >
> > Can someone advise me on this question:
> > Using hook_form_alter in monument_image.module means that in effect every
> > image becomes a monument_image. I need to find a way of extending the
> > image module without forcing each image to have this extra data.
> >
> > Thanks
> >
> > Chris


More information about the development mailing list