Closed (fixed)
Project:
Drupal.org security advisory coverage applications
Component:
module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
15 Nov 2012 at 11:20 UTC
Updated:
8 Feb 2013 at 17:00 UTC
Provides "taxonomy term belongs to vocabulary" conditions for menu position rules.
This condition let's you check if currently viewed taxonomy page belongs to a selected vocabulary and if yes, it activates selected menu item.
A link to your project page: http://drupal.org/sandbox/timonweb/1841468
A direct link to your git repository: git clone --recursive --branch 7.x-1.x timonweb@git.drupal.org:sandbox/timonweb/1841468.git menu_position_vocabulary
Drupal version: 7
Comments
Comment #1
parwan005 commentedHi,
you havent committed your .module and other files. I see only .info file here.
Thanks
Parwan
Comment #2
timonweb commentedHi,
files not in master branch, files are in 7.x-1.x branch, use command
git clone --recursive --branch 7.x-1.x timonweb@git.drupal.org:sandbox/timonweb/1841468.git menu_position_vocabularyto checkoutComment #3
parwan005 commentedHi,
Here are the details from your manual review done :-
1) You do not have @doc file comment in your .module file.
2) You have commented code in your .inc file. It should be removed.
3) Also proper indenting and formatting of code should be done. As mentioned here.
Also make sure you end each of your file with a new line. And also please remove LICENSE.txt file. It will be added automatically.
I think you shouldn't be having the master branch. That should be removed. That is also mentioned in automated review here.
Thanks
Comment #4
timonweb commentedHi,
all is fixed per recommendations. Online check results canbe found here: http://ventral.org/pareview/httpgitdrupalorgsandboxtimonweb1841468git
Thanks.
Comment #5
timonweb commentedfixed.
Comment #6
klausiThis application is not fixed? See http://drupal.org/node/532400
Comment #7
timonweb commentedah, sorry. Misinterpreted statuses :) I mean I've fixed all errors and warnings. Waiting for review.
Comment #8
miloyz commentedHi Spaiz,
First of all, thanks very much for committing this module. This functionality seems to be good complement to the existing menu_position module.
I have reviewed your module quickly and it seems everything is fine, except one comment I would have:
In file menu_position_vocabulary.inc, at lines 21 and 57, it seems you're calling functions from the taxonomy module.
In particular:
taxonomy_term_loadtaxonomy_vocabulary_get_namesSo I would simply recommend that you add one line of code in your file menu_position_vocabulary.info:
Line 2, for example, add the following code:
Otherwise, I'm afraid there would be a risk of getting a Fatal error: Call to undefined function Error if the Taxonomy module is not enabled.
So far, that's all I could find, but I will keep looking and certainly let you know if I can find anything else.
I hope this comment will help you to improve this nice module.
Cheers!
Comment #9
timonweb commentedHi miloyz,
thanks for a suggestion. Fixed.
Cheers,
Tim
Comment #10
jhaskins commentedI don't see any issues with the code. A couple comments about the project in general:
The module seems pretty easy to use but perhaps you could add a "usage" section to the README.txt to fulfill this requirement.
Comment #11
timonweb commented1. Added more info to project page and a screenshot.
2. Added usage section to README.txt
I guess we can laucnh this one :) please confirm :)
Comment #12
klausiWe are currently quite busy with all the project applications and I can only review projects with a review bonus. Please help me reviewing and I'll take a look at your project right away :-)
Comment #13
cloudbull commentedREADME.txt
ok, better add a to-do list so that others can make contribution
project page
ok
Master Branch
You are not using it
Major coding standards / best practice issues
Manual Review: Everything is fine
License
Better to have it
access administration vs. administer site configuration
Permissions make sense.
PAReview: 3rd party code
No 3rd party stuff here.
Multiple Applications
No
Already Approved
Nope, but I think you will be soon.
Idle Application
Nope, you're all set.
Code too short
Nope, you're all set.
Comment #14
timonweb commentedHi,
1) README.txt will stay as it is, because it complies with guidelines
2) LICENSE.txt shouldn't be included
Maybe it is about a time to release this one ;) ? klausi?
Comment #15
stborchertWouldn't it be better to provide this functionality as a patch for Menu position?
Additionally the module is quite short. We are currently discussing how much code we need, but everything with less than 120 lines of code or less than 5 functions cannot be seriously reviewed. However, we can promote this single project manually to a full project for you.
Comment #16
timonweb commented1) I want to maintain this functionality as a standalone module.
2) 120 lines of code? If you want, I can make 500 lines of code for it ;) Don't judge about module by number of lines...
Comment #17
stborchertCan you explain why?
We prefer collaboration over competition. If the functionality provided by a module is not too fundamental for patching the one it extends, we would love to see you joining forces and concentrate all power on enhancing one module.
I'm sure the maintainer of Menu position will be glad to see this as a patch or welcome you as a co-maintainer if he does not have enough time to maintain the module anymore.
Please see the discussion about how much code we need for a review.
Comment #18
cedeweyHi,
This module has been reviewed and tested. The necessary changes have been made and the module indeed does exceed 120 lines of code in total. Nice work and I look forward to using this as a full project!
Comment #19
sreynen commentedSome notes:
* You could pass a path to arg() to create your $arg variable, rather than exploding it yourself, to make your module code a bit simpler.
* This module implements hooks from the menu_position module. Those hooks were added to allow menu_position to be extended by other modules. This is not competition; it's Drupal's modular architecture in practice.
The arg() thing isn't a blocker, so I'm moving this to fixed.
Spaiz, thanks for your contribution and 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, at your discretion.
Now that you've experienced the full review process, please consider reviewing other projects that are still awaiting review. Anyone can help with reviews, following the guidelines.
Comment #20
timonweb commentedcedewey and sreynen, thank you very much for your help! At last :)