Check filemime for image fields.
If argument 'is_default' == TRUE it means that a picture is not load.
This is equivalent empty field.

CommentFileSizeAuthor
is_image.patch836 bytesAnonymous (not verified)

Comments

BarisW’s picture

Status: Active » Needs work

Thanks for the patch, but can you explain what it does? Why is this patch needed? What goes wrong without the patch?
Also, please patch against a git checkout (dev) instead of 1.4, as the variable names have changed in between (from $key to $$field_name.

mrded’s picture

Version: 7.x-1.4 » 7.x-1.x-dev

He means that the module doesn't support fields with default value :)

mrded’s picture

Title: Field type image » Support fields with default value.
abramm’s picture

Assigned: » Unassigned
Issue summary: View changes
Status: Needs work » Closed (outdated)

D7 reached its EOL back in January 2025, and there is no active release for D7 for this module anymore.
Development or support is not planned for D7. All D7-related issues are marked as outdated in a bunch.

Everyone can apply the patch above (not tested by the maintainers, tested by the community) to their D7 projects.
If the issue remains relevant for D10+ versions, merge requests with proposed solutions for a new module version (D10+) are welcome in a new follow-up issue.

Thanks!

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.