Closed (fixed)
Project:
Drupal.org security advisory coverage applications
Component:
module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Anonymous (not verified)
Created:
23 Dec 2011 at 12:31 UTC
Updated:
2 Jan 2026 at 16:21 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
agentrickardRan a coder review. No issues.
Minor (very minor points):
package = Media(uppercase).I'd like to see a Media module maintainer weigh in here. I like this module as a short-term or optional solution to the described problem. But is there a chance this will go into the main module (or main module package)?
Comment #2
dave reidYes, we will definitely have to add something like this to Media and I would really, really prefer that this support go in Media proper, but this is probably a good temporary solution in the meantime.
The only thing missing in this module is the ability for a user to manually delete a file via file/%file/delete even if the file is 'locked' but that could also probably be fixed from the File entity module side of things by using $force with file_delete().
Overall this gets my +1 as long as we can get your help improving this in media. I'd probably also suggest naming this 'File lock' since it doesn't actually have anything to do with the Media project aside from enhancing it. There's no real reason to have a dependency here as other modules might find this solution useful.
Comment #3
agentrickardGood point about File Lock.
Comment #4
Anonymous (not verified) commentedsmall update:
renamed the module to File Lock
package description is now 'Media'
dependency changed from media to file
better description
fixed many (all?) of the whitespace issues, docblock
feature updates earliest after christmas,
and you can count on my help to improve this in media :)
Comment #5
agentrickardSounds good to me. Developer shows great attitude, too.
Comment #6
klausiReview of the 7.x-2.x branch:
This automated report was generated with PAReview.sh, your friendly project application review script. You can also use the online version to check your project. Go and review some other project applications, so we can get back to yours sooner.
manual review:
Comment #7
klausiImproved drupalcs to also detect array indentation errors, see attachment.
Comment #8
agentrickardNone of these are fatal blockers to approval, except perhaps
hook_file_operations_info().Comment #9
dave reidIssue filed in file_entity with #1392810: Cleanup and document hook_file_operation_info()
Comment #10
Anonymous (not verified) commented*)if I've missed any I'll fix them as soon as I got drupalcs/pareview completely integrated into my IDE (eclipse) (there are several ways to do that, I'm also working on an tutorial about that)
Comment #11
dave reidI think Shuairan has done a great job in being responsive in this application and this is ready to be approved. Code looks good and ready for use.
Comment #12
klausiReview of the 7.x-2.x branch:
This automated report was generated with PAReview.sh, your friendly project application review script. You can also use the online version to check your project. Go and review some other project applications, so we can get back to yours sooner.
manual review:
But that are just minor issues, so ...
Thanks for your contribution, Shuairan! Welcome to the community of project contributors on drupal.org.
I've granted you the git vetted user role which will let you promote this to a full project and also create new projects as either sandbox or "full" projects depending on which you feel is best.
Thanks, also, for your patience with the review process. Anyone is welcome to participate in the review process. Please consider reviewing other projects that are pending review. I encourage you to learn more about that process and join the group of reviewers.
As you continue to work on your module, keep in mind: Commit messages - providing history and credit and Release naming conventions.
Comment #13.0
(not verified) commentedRenamed to File Lock