New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2nd bugfix for #361 - forgot about register module #393
Conversation
2nd bugfix for elplatt#361 - forgot about register module
@ramgarden @elplatt another one to check :) |
use existing member add form elplatt#361
@@ -27,12 +27,6 @@ | |||
*/ | |||
function member_add_form () { | |||
|
|||
// Ensure user is allowed to add members | |||
if (!user_access('member_add')) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why was this removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is to allow the form to be rendered without anyone being logged in, so it can be used as part of the register form
) | ||
); | ||
$form['fields'][] = array( | ||
'type' => 'fieldset', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You also removed all this membership info?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of trying to maintain 2 duplicate forms, I've set the register form to use the member_add form, as it's identical
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check my inline comments.
@ramgarden @elplatt replied to the comments, are you happy for this to be merged? |
Yep. Satisfied my curiosity. Looks OK to me. |
2nd bugfix for #361 - forgot about register module