I am getting this error message (Show block for specific content types field is required) on my blocks, steps to reproduce it (traced the error to superfish_form_validate()):
1. go to the structure -> blocks
2. pick a block click configure
3. select any content type save block (bottom of page -- content types tab)
4. then re-enter the configure section and deselect all the content types (Not Restricted)
5. click save block and this error message comes up
Why are you calling the validate function in the hook_form_block_admin_configure_alter()? This was causing all the other blocks to have this error. I would think the form should be validating on submit -- with an if statement to isolate your specific form based on form_id. I am new to drupal so I may be wrong about the last statement.
Comments
Comment #1
mehrpadin commentedHey Amin,
Thanks for it, added to my to-do list.
Comment #2
mehrpadin commentedAmin,
I was not able to reproduce this locally, can you please send me a list of installed modules?
Comment #3
Taxoman commentedComment #4
lobsterr commented