Closed (fixed)
Project:
Drupal.org security advisory coverage applications
Component:
module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
11 Feb 2012 at 20:39 UTC
Updated:
8 Jun 2012 at 19:11 UTC
This module adds a new widget to the Node Reference field. It allows the administrator to select an image field from the referenced content types and an image style to output the field as a grid of selectable images, where the user can select a node by clicking on an image. The refered content type must have an Image field for this widget to work correctly.
This is a Drupal 7 only module.
project page: http://drupal.org/sandbox/skein/1429290
git: git clone http://git.drupal.org/sandbox/skein/1429290.git node_reference_selector_widget
Comments
Comment #1
eugene.ilyin commentedHello. I spent manual review of your module.
'#title' => check_plain(t('!name Image Field', array('!name' => node_type_get_name($type)))),
Use @ instead of ! then check_plan will not need.
function nodereference_selector_field_widget_form - double space between function and name.
Comment #2
skein commentedThanks for the quick review.
The issues you mentioned are now fixed and commited
Comment #3
skein commentedForgot to change status
Comment #4
vaibhavjainHello skein,
Please move your code from master repo to version specific branch. Check this for more - http://drupal.org/node/1127732
Comment #5
skein commenteddone
Comment #6
gopagoninarsing commentedThere are still files other than README.txt in the master branch, make sure to remove them. See also step 5 in http://drupal.org/node/1127732
Comment #7
skein commented#6 removed evrything except README.txt
Comment #8
KhaledBlah commentedFirst of all, thank you for contributing!
Automatic review of 7.x-1.x branch:
Review of the 7.x-1.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. Get a review bonus and we will come back to your application sooner.
Source: http://ventral.org/pareview - PAReview.sh online service
Manual review of 7.x-1.x branch:
function nodereference_selector_field_widget_info()Is there a hook_widget_info() in D7? It's not listed on api.drupal.org but I am not very familiar with CCK in 7.x$query = db_select('node', 'n');- Please consider using hook_query_alter as per When to use db_rewrite_sql or hook_query_alter()Comment #9
KhaledBlah commentedstatus updated.
Comment #10
skein commented0. Fixed the Code Sniffer Issues
1. it's hook_field_widget_info : http://api.drupal.org/api/drupal/modules!field!field.api.php/function/ho...
2.Added a tag for hook_query_alter support
3.Not sure what you mean here. I only use db_select, while placeholders are used in db_query
Comment #11
KhaledBlah commented1. D'Oh! I must have been blind!
3. Point taken!
As far as I can tell this is good to go. Maybe a more experienced reviewer could review it and see if it is RTBC ready.
Comment #12
funkeyrandy commentedhmm..my selections are not saving...has anyone experienced this? its a multi select field
Comment #13
skein commentedHello. I just tried my latest code with a multi selection field. Everything worked. If you're still experiancing the issue can you provide a test website with an example or your field configuration settings?
Comment #14
brunogoossens commentedReview by Pareview:
Good.
Manual review:
Major issues:
None
Small issues:
Why is this code in js file and not in css?
I also tested the multiple select and it works fine.
Comment #15
klausiSorry for the delay, but you have not listed any reviews of other project applications in your issue summary as strongly recommended in the application documentation.
Thanks for your contribution, skein! 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.
Thanks to the dedicated reviewer(s) as well.