stijndm [stijndm]

Created on 20 January 2010, almost 15 years ago
Updated 16 April 2023, over 1 year ago

CVS edit link for stijndm

I have been working with Drupal since 2007 and I feel I am long overdue to contributing back to the community. I've tried following the issue queue but I easily forget to check back.

I've written lotst of modules, but often to project specific to be interesting for the community.

More recent I've been working on a Quick Edit block to work together with the next version of the Admin module. (http://m.sken.be/post/293599831/spelen-met-de-nieuwe-admin-toolbar-van)

I also have a working version of an Addemar plugin for Davy Van Den Bremt's Email Marketing Framework (emf) which currently is under internal review. But most likely will become a sponsored subset of emf.

But today I would like to contribute a module I have written that allows you to place form error messages inline with the corresponding form element (called: Inline Form Errors). You can see it in action on my contact page (http://sken.be/contact). A demo site is being setup where you can login an see how it works.

I'm aware of the following modules:
- Inline Messages (http://drupal.org/project/inline_messages)
- Inline Errors (now Inline Messages)

After some research these modules were not what we were looking for because of the following reasons:

1) Goals/result:
Inline Messages taks the messages set by Drupal and groups them above the form you submitted, creating a more clear connect between the errors and the forms.

As far as I can tell I isn't possible to place the errors in line with the corresponding form element. This is what Inline Form Errors does. It takes the error message from a certain form element and puts it directly below the highlighted field.

2) Approach:
Inline Messages uses jquery to pull the messages from the message container and then places them above the form.

Inline Form Errors does not use any jquery. With a form alter the elements are styled with an override-able theme function. In this theme function the element errors are fetched and placed beneath the themed element.

The original error messages (in $messages) can either be 1) replaced by a generic 'Please correct errors' message, 2) be removed entirely or 3) can be left in place together with the inline errors

It currently has been tested with some of the drupal core forms, custom built forms and with Webform.

It's a fairly simple module, but one that provides often asked functionality.
Hopefully it sounds interesting enough for a positive review.

📌 Task
Status

Fixed

Component

co-maintainer application

Created by

🇧🇪Belgium stijndm

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024