The read only node module simply allows you to set a node as read only by adding a new "Publishing option" to it.
The module commes with 4 new permission :
- set node as read only
- set node stiky
- set node status
- set node promote
When a node is set as Read only, only the role with the permission 'set node as read only' can edit it.
This module as been tested in a production site. In this site it was used for wiki content to allow particular role to 'lock' the wiki, even from the user who has created it.
Project page
https://www.drupal.org/sandbox/ttournie/2278257
Git
git clone --branch 7.x-1.x http://git.drupal.org/sandbox/ttournie/2278257.git read_only_node
Automated Review
http://pareview.sh/pareview/httpgitdrupalorgsandboxttournie2278257git
Manual Review
Comments
Comment #1
ttournie commentedComment #2
madhusudanmca commentedAutomated Review
Best practice issues identified by pareview.sh / drupalcs / coder. Yes, http://pareview.sh/pareview/httpgitdrupalorgsandboxttournie2278257git reported number of issues that need to be address.
Manual Review
The starred items (*) are fairly big issues and warrant going back to Needs Work. Items marked with a plus sign (+) are important and should be addressed before a stable project release. The rest of the comments in the code walkthrough are recommendations.
I have tested your module functionality that looks good but due to lack of README.txt and master branch moving to Need Work.
Comment #3
ttournie commentedComment #4
ttournie commentedThanks for your automated review I have made some change accordingly
Comment #5
ttournie commentedComment #6
PA robot commentedWe are currently quite busy with all the project applications and we prefer projects with a review bonus. Please help reviewing and put yourself on the high priority list, then we will take a look at your project right away :-)
Also, you should get your friends, colleagues or other community members involved to review this application. Let them go through the review checklist and post a comment that sets this issue to "needs work" (they found some problems with the project) or "reviewed & tested by the community" (they found no major flaws).
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #7
naveenvalechaUpdated issue summary.
Comment #8
naveenvalechaHi @ttournie
Thanks for your contribution in drupal.
Automated Review
Please follow the best practice issues identified by pareview.sh / drupalcs / coder.http://pareview.sh/pareview/httpgitdrupalorgsandboxttournie2278257git
Manual Review
NoYes: Follows the guidelines for 3rd party code.// Add $ready variable.Please remove this as there is no $ready variable.Also update the commenthook_preprocess_HOOK()tohook_preprocess_hook()This review uses the Project Application Review Template.
As I am not a git administrator, so I would recommend you, please help to review other project applications to get a review bonus. This will put you on the high priority list, then git administrators will take a look at your project right away :-)
Thanks Again!
Comment #9
ttournie commentedThank you,
I have done some changes and now it's good when I run the Autotmated review.
I do not understand the issues with 3rd party code (I dont have any).
About the review bonus, I'm going to see what I can do :)
Comment #10
ttournie commentedComment #11
naveenvalecha@ttournie
It was the typo.I have updated my comment above. https://www.drupal.org/node/2344695#comment-9181347
Please udpate your project page https://www.drupal.org/sandbox/ttournie/2278257
please help to review other project applications to get a review bonus. This will put you on the high priority list, then git administrators will take a look at your project right away :-)
Comment #12
ttournie commentedOk
I have updated the .zip and .tar to the last version in my project page.
Do I need to update something else ?
Thank's :)
Comment #13
robin.ingelbrecht commented@ttournie,
Functionality of your module seems to work. There is one litthe flaw though:


When I configure my content type and mark "Read only" as default and then add a node of that content type, the flag "read only" isn't marked...
Comment #14
ttournie commentedThank you for the feedback :)
I have updated my code and now this issues is fixed.
Comment #15
ttournie commentedComment #16
darol100 commented@ttournie,
Hook_help is missing .... Just like #2 madhusudanmca mention before having hook_help is a better practice in your module and it can be very useful for site builders.
Even if the hook_help is been pull of the README file will be fine. Here is an example that you can use in your code.
Beside of the hook_help your module seem to be working fine. Thanks for your contribution.
Comment #17
ttournie commentedThanks darol100
I have added the hook_help as requested.
Comment #18
ttournie commentedComment #19
PA robot commentedProject 1: https://www.drupal.org/node/2349403
Project 2: https://www.drupal.org/node/2344695
As successful completion of the project application process results in the applicant being granted the 'Create Full Projects' permission, there is no need to take multiple applications through the process. Once the first application has been successfully approved, then the applicant can promote other projects without review. Because of this, posting multiple applications is not necessary, and results in additional workload for reviewers ... which in turn results in longer wait times for everyone in the queue. With this in mind, your secondary applications have been marked as 'closed(duplicate)', with only one application left open (chosen at random).
If you prefer that we proceed through this review process with a different application than the one which was left open, then feel free to close the 'open' application as a duplicate, and re-open one of the project applications which had been closed.
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #20
ttournie commentedComment #21
darol100 commentedI ran some testing on your module using the coder module and I got these errors.
Please fix those warnings....
Comment #22
klausiThose warnings are surely not application blockers, please do a real manual review of the source code.
Comment #23
darol100 commented@Klausi
If those warning are not application blockers this module seem ready to me. He added the Hook_help that was I requested.
@ttournie
Great work thank you for your contribution
Comment #24
ttournie commentedThanks @darol100.
Now I just have to wait I gess :)
Comment #25
kscheirerSorry to be the first to bring this up, but
Only the hook_node_access() and hook_preprocess_node() functions provide something unique, and they are very short.
Comment #26
ttournie commentedThanks,
I have created an issues in the project https://www.drupal.org/node/2449433
We will see how it goes.
Comment #27
ttournie commentedComment #28
darol100 commentedAs we change our project application process in #2453587: [policy, no patch] Changes to the project application review process we are not allowed to block applications base on module duplication. We can still recommend collaboration over competition, but we should not enforce it.
Comment #29
PA robot commentedProject 1: https://www.drupal.org/node/2344695
Project 2: https://www.drupal.org/node/2349403
As successful completion of the project application process results in the applicant being granted the 'Create Full Projects' permission, there is no need to take multiple applications through the process. Once the first application has been successfully approved, then the applicant can promote other projects without review. Because of this, posting multiple applications is not necessary, and results in additional workload for reviewers ... which in turn results in longer wait times for everyone in the queue. With this in mind, your secondary applications have been marked as 'closed(duplicate)', with only one application left open (chosen at random).
If you prefer that we proceed through this review process with a different application than the one which was left open, then feel free to close the 'open' application as a duplicate, and re-open one of the project applications which had been closed.
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #30
ttournie commented