The 'user_register' variable doesn't have named constants, just integers passed around, and as far as I can tell the values aren't documented anywhere.

If they were at least explicitly declared with a keyed array in the form code rather than implicitly with a numeric array, this would be a help to people trying to understand the code.

CommentFileSizeAuthor
#1 723124.drupal.user_register-values.patch866 bytesjoachim

Comments

joachim’s picture

Status: Active » Needs review
StatusFileSize
new866 bytes
Stevel’s picture

Status: Needs review » Reviewed & tested by the community

This patch looks good. I guess trying to document all variables with constants containing possible values is a no-go, so this is as good as it will get.

Stevel’s picture

Status: Reviewed & tested by the community » Closed (duplicate)

Apparently, this was already fixed, and constants are defined now. Marking this a duplicate of #174972: User creation setting should be "Visitors, with admin approval"