If we were to change the various node hooks that implement image functionality to nodeapi hook ops, we could allow any node type to have associated images. This approach is taken e.g. in mail.module: a mail node type is registered, but is implemented through nodeapi, so that other node types can also be mailed (if they are designated as mailable, through a settings nodeapi hook).

Thoughts? Has this approach been discussed and decided against? I'd be happy to code a patch.

Comments

drewish’s picture

I'd be very much in favor of this.

decafdennis’s picture

It would be nice, but the question is whether this should be in image.module. At the moment it is already possible using flexinode module, or (if you write your own field type) CCK module.

RayZ’s picture

Based on recent discussions, including comments from walkah, on the dev mailing list, it looks like this is at least being seriously considered.

See http://lists.drupal.org/archives/development/2006-03/msg00646.html

walkah’s picture

indeed i'm looking at incorporating a variation on :
http://drupal.org/node/56761

drewish’s picture

Status: Active » Fixed

take a look at the image_attach module or the imagefield module which provides a CCK field.

Anonymous’s picture

Status: Fixed » Closed (fixed)