Based on upload_image.module, i wrote a small module.
I changed it to work with clipper.

If a module has a parent or child 'image' it displays icon of the image INLINE in node view.

You can find it in my sandbox. http://cvs.drupal.org/viewcvs/drupal/contributions/sandbox/keve/clipper_...

CommentFileSizeAuthor
#6 clipper_image.module2.23 KBsami_k

Comments

sami_k’s picture

is this a 4.7b5 tested module, because I can't seem to get it to work with 4.7b5

Bèr Kessels’s picture

Also, note that as per the README: http://cvs.drupal.org/viewcvs/drupal/contributions/README.txt?rev=1.5&vi...

Anything that is a standalone module should go in modules/

sami_k’s picture

It does seem very much to work with 4.65... Looking over code atm...

sami_k’s picture

Yeah, killes module is 4.6.x so this module is 4.6.x, but it would be useful in 4.7.x.

keve’s picture

Sorry, for not telling.
Yes, i wrote it for 4.6.5, but when i upgrade my site to 4.7, i will definitely upgrade it.

I do not plan to launch it as a standalone module. It does the same thing as upload_image (without upload).

Also, when clipper would work better, without bugs, it would worth convincing other module mainteners (like upload_image, etc...) to use it as a kind of API for connecting nodes to each other.
But until then it will stay in my sandbox :)

sami_k’s picture

StatusFileSize
new2.23 KB

The question is why the attached module doesn't work with 4.7x?

sami_k’s picture

Update guide:
http://drupal.org/node/22218#node_load

It doesn't seem that it applies much to it, from the original module node_load($child/$parent) statements were updated... the help block was updated... but 4.7 still is not recognizing it... any ideas as to why? might as well as get this to 4.7 now i think, i could use it...