This is a Drupal 7 module, it provides a password field, then anonymous users can create/edit the node with the field.
For login users, the password filed would automatically disappear.
You may want to use this field when:
your node can be created/edited by anonymous, and want a password to protect it.
you want to make a yellow page sites, and users doesn't need to login/register to post contents, but also can edit the content by their own.
Comments
Comment #1
rogical commentedsandbox: http://drupal.org/sandbox/rogical/1182062
Comment #2
ccardea commentedHello rogical,
Thank you for your application. You will need to provide a list of existing modules that provide similar functionality, and explain how your project is different.
The wait time for a review is currently approaching seven weeks. You can help to reduce your wait time by participating in the code review process. All it takes is basic module writing skills. Please visit http://groups.drupal.org/code-review for more information on how to participate.
Comment #3
jordojuice commentedPlease add a README.txt file detailing installation and setup instructions as well.
Comment #4
jordojuice commented@rogical
I noticed you have multiple applications in the queue. You can apply for full project access with only one project and will be able to promotion your other projects to full project status once accepted. Please choose one of your projects to put through the application review process and set all other issues to closed (won't fix). This will help reduce the nearly 7 week backlog in this queue.
Comment #5
rogical commentedthanks for the information and:
1) a README.txt file with install guides inside was added
2) similar modules and difference:
Password edit
-- a field module used for anonymous users create/edit their own nodes, user can enter a password on creating a node, then need enter the same password to edit the node, D7 only
Node access password
-- Allows a node to generate a password for itself that users must enter into their profile to be able to see that node, D6 & D7 (not for anonymous users).
Password Require
-- This is module allows adding password(user's password) protect to any form in Drupal, D6 only (not for anonymous users).
Comment #6
ccardea commentedpassword_edit review notes
.module file
I've seen your demonstration site which appears to be working, but it cannot possibly be using this code.
line 30: arg(2) is $field. How can the value ever be 'edit'? This will never evaluate to true so none of the code in this if block ever gets executed.
line 31: arg(1) is not a node id, it is the node itself. The only reason this is not causing an error is because the code never gets executed.
line 32 & 33: Same here. Used an incorrect name for the field, but no error because it never executes.
line 34 & 35: Why are you calling node_type_get_type? It's not used anywhere.
line 40 -42: Why is this inside a loop? This should be the first thing this function does, since nothing else applies if the user is logged in.
line 45 & 46: !empty[$password] is your initial condition on line 45, but you check it again on line 46. Also there should be no space between ! and 'empty'.
line 45: Tries to reference the $password variable that is defined inside another if block and should not be visible in this scope, especially since the if block where it is defined never gets executed.
line 105: No switch statement needed.
line 124: I think you should leave this out since a password should not accept multiple values
line 125: A password field should not have a default value.
line 149: You don't need a switch statement here.
I have serious doubts about this application and this applicant.
Comment #7
rogical commentedline 30: arg(2) is $field. How can the value ever be 'edit'? This will never evaluate to true so none of the code in this if block ever gets executed.
line 31: arg(1) is not a node id, it is the node itself. The only reason this is not causing an error is because the code never gets executed.
line 32 & 33: Same here. Used an incorrect name for the field, but no error because it never executes.
-- this is obvious, load the password of the node being edited, and check if matched after the edit with password input again.
line 34 & 35: Why are you calling node_type_get_type? It's not used anywhere.
-- at first, I want add a setting for content types, and forget to remove somehow.
line 40 -42: Why is this inside a loop? This should be the first thing this function does, since nothing else applies if the user is logged in.
-- yes, I would put it outside the loop.
line 45 & 46: !empty[$password] is your initial condition on line 45, but you check it again on line 46. Also there should be no space between ! and 'empty'.
-- forget to remove somehow.
line 45: Tries to reference the $password variable that is defined inside another if block and should not be visible in this scope, especially since the if block where it is defined never gets executed.
-- the $password is very important on validating on node/$nid/edit form
line 105: No switch statement needed.
-- I understand, but it is very common when you want add new features later and would leave the switch for convenient.
line 124: I think you should leave this out since a password should not accept multiple values
line 125: A password field should not have a default value.
-- I admit I'm not quite understand this two para, would remove it.
line 149: You don't need a switch statement here.
-- same switch concern, just convenient for new features
So, as a password field to let node to be add/edit by anonymous, although this function is not existed yet, no others really need, then I'd close this and try other modules people would be interested.