Closed (won't fix)
Project:
Drupal.org security advisory coverage applications
Component:
module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
30 Jul 2012 at 18:04 UTC
Updated:
15 Dec 2012 at 11:36 UTC
Jump to comment: Most recent
Comments
Comment #1
cthiebault commentedAutomatic review
vocabulary_term_reference.module
foreach(taxonomy_get_vocabularies() as $vid => $vid_obj) {
'#options' =>
vocabulary_term_reference_taxonomy_options(taxonomy_get_vocabularies(),$instance['widget']['settings']['vid']),
check_plain(), filter_xss() or similar to ensure your $variable is fully sanitized.
'#title' => (!empty($element['#title'])) ? $element['#title'] : t('List of terms and vocabularies'),
function vocabulary_term_reference_taxonomy_options($vocabularies,$settings) {
if (count($settings) > 0 && !in_array($v->vid,$settings)) {
vocabulary_term_reference.install
'indexes' => array('tid' => array('tid'),),
Manual review
Check Drupal coding standards (http://drupal.org/coding-standards#indenting). Some of your code is not well
indented.
vocabulary_term_reference.module
vocabulary_term_reference.install
Implement hook_uninstall() if you implement hook_install().
Comment #2
Anonymous (not verified) commentedManual review :
$options = array(0 => '- '.t('Select a value').' -');instead.Comment #3
gellweiler commentedI have enabled your module and tested it out, it works as it is suppose to do. I think it's a very practical feature. A small improvement would be maybe to give more field types than multiple select lists, to choose the vocabulary. For example a list of checkboxes or a select list were you can choose multiple values.
I think your code is good documented, but I haven't done a deeper review of code, as it already has been done on the comments before this one.
Comment #4
jygastaud commentedHi,
I didn't have a look at your module code, but after install it, I think your module is really close from what Entityreference done when you choose Vocabulary Term entities.
Only difference I can see is that your module add a seperation between each vocabulary on display and entityreference doesn't ... But do we really need it?
Maybe it would be better if you help to improve widget for entityreference instead of publish a other module?!
I put the module to "need work" because of 3 previous review.
Comment #5
klausiClosing due to lack of activity. Feel free to reopen if you are still working on this application.