I found it confusing for the user to just hide everything (form or link) when he's already registered. By looking at the formatter code, the reasons for hiding such a link are plenty, from access, to being registered, etc.

I added a bit of logic to show an "Already registered", exclusively if the user is registered and the registration does not allow multiple. It uses a theme function that can be changed if necessary. I am not sold 100% on this solution but I think it's a good starting point.

Comments

hanoii’s picture

Status: Active » Needs review
StatusFileSize
new3.17 KB
hanoii’s picture

hanoii’s picture

StatusFileSize
new3.24 KB

Small fix on the patch.

Renee S’s picture

(sigh. wrong issue)

bartmann’s picture

Thanks hanoii - this patch works for us.

chris matthews’s picture

Status: Needs review » Needs work
Issue tags: +Needs reroll
StatusFileSize
new56.82 KB

The patch in #3 no longer applies to 7.x-1.x-dev. Added needs reroll issue tag.

Checking patch includes/registration.field.inc...
error: while searching for:

            )
          );
        }
        break;
      case 'registration_form':
        // Enable registration link if accessible.

error: patch failed: includes/registration.field.inc:264
error: includes/registration.field.inc: patch does not apply
Checking patch registration.module...
Hunk #1 succeeded at 917 (offset 10 lines).
Hunk #2 succeeded at 966 (offset 10 lines).

john.oltman’s picture

Status: Needs work » Closed (outdated)

This feature is present in the latest 3.x release.