Closed (works as designed)
Project:
Image
Version:
5.x-1.6
Component:
image_attach
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
18 Dec 2007 at 20:44 UTC
Updated:
6 Apr 2008 at 19:03 UTC
I need a way to make the image attach required for certain content types. Is there any support for this?
Comments
Comment #1
drewish commentedthere is not. you might want to look at the imagefield module for that.
Comment #2
ebeyrent commentedI ended up writing a module that implements hook_form_alter:
Comment #3
ebeyrent commentedThe code above had an error - if you attached and image and submitted the content type, an error was thrown saying that the image field was required. This code here fixes the issue:
Comment #4
Brian@brianpuccio.net commentedOpen this up again if need be, but it seems like this is by design and you've created your own solution (and documented it here for others to find, thanks).