Thanks for this module! I like the idea of the suggested feature. The order can be changed for all forms by changing the order of elements in an ife-form-element.tpl.php override, but setting this by form in the admin section makes sense to me.
I'll have a look in to this, but this will require an override of the core theme_form_element function which could lead to conflicts with other contributed modules and themes.
For what it is worth, I accomplished a similar goal by overriding theme_ife_form_element to just return the $variables['element']['#children'] value and then moving the ife_errors() call and the output to theme_form_element per stijndm.
Comments
Comment #1
robin van emden commentedThanks for this module! I like the idea of the suggested feature. The order can be changed for all forms by changing the order of elements in an ife-form-element.tpl.php override, but setting this by form in the admin section makes sense to me.
Comment #2
stijndm commentedI'll have a look in to this, but this will require an override of the core theme_form_element function which could lead to conflicts with other contributed modules and themes.
Comment #3
stijndm commentedComment #4
stijndm commentedComment #5
stijndm commentedComment #6
robertom commentedHi, sorry for my bad english.
If could be helpful for someone, I've used a dirty workaround for add error inside the "wrapper" of fields (useful when is used a based grid theme).
inside template.php of my theme, I've added this code:
obviously you need to replace mytheme with the name of your theme
Comment #7
d.clarke commentedFor what it is worth, I accomplished a similar goal by overriding theme_ife_form_element to just return the $variables['element']['#children'] value and then moving the ife_errors() call and the output to theme_form_element per stijndm.
Comment #8
skaughti use this to get the messages into the end of the 'form-item'...