Problem/Motivation

Currently, if the registration form/link is not available for any reason (event full, registrations closed or disabled, not enough permissions, etc.) the field appears empty so the user cannot understand what to do.

Proposed resolution

If registrations are closed, output a message that explains why, using the errors generated by the registration_status() function.
If registrations are open but there is a permission problem, output an other message:
- For anonymous: Login or create an account to register.
- For authenticated people: You are not allowed to register.

I suggest to add a checkbox to the formatters settings to allow the site builders to disable this message if they don't want it.

Remaining tasks

Patch, Review, Commit

User interface changes

New checkbox in the formatters settings.
New message that replaces registration form or link under certain circumstances.

API changes

None.

Data model changes

A new formatter setting to store.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

DuaelFr created an issue. See original summary.

DuaelFr’s picture

Issue summary: View changes
DuaelFr’s picture

Assigned: DuaelFr » Unassigned
Status: Active » Needs review
Issue tags: +ux
FileSize
5 KB

Here is the patch.

maddentim’s picture

I need this functionality for a project as well. I successfully applied the patch and it seems to work. I will test some more and give feedback. One initial thought would be that Login link / Create Account links should take the user back to the entity that they started from... I'll see if I can edit your patch to that effect. Thanks much

wxactly’s picture

Version: 7.x-2.x-dev » 7.x-1.x-dev
Chris Matthews’s picture

Status: Needs review » Reviewed & tested by the community
Issue tags: -ux

The patch in #3 is 3 years old, but still applied cleanly to
7.x-1.x-dev. After reviewing and testing this feature really is a very much needed UX improvement to the module so changing the status to RTBC.