If you change the style after an image has already been loaded. you get the error:

The file used in the Image field may not be referenced.
CommentFileSizeAuthor
#1 examples.image_example_usage_count.patch1.56 KBrfay

Comments

rfay’s picture

Status: Active » Needs review
StatusFileSize
new1.56 KB

Here's the patch. I think this is the right thing to do.

eojthebrave’s picture

Status: Needs review » Reviewed & tested by the community

I like it.

Looks like the file_usage_* functions were added by #353458: hook_file_references() was not designed for a highly flexible field storage which landed after this module was first written.

rfay’s picture

Status: Reviewed & tested by the community » Fixed

OK, committed: http://drupal.org/cvs?commit=464246

Thanks so much.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.