Needs work
Project:
Taxonomy Node Operations
Version:
5.x-1.1
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 Feb 2008 at 21:58 UTC
Updated:
16 Apr 2008 at 12:56 UTC
$name is not used... I guess this hasn't been used since 4.7! It also needs a better comment.
/**
* Generate a form element for selecting terms from a vocabulary.
*/
function taxonomy_form($vid, $value = 0, $help = NULL, $name = 'taxonomy') {
$vocabulary = taxonomy_get_vocabulary($vid);
$help = ($help) ? $help : $vocabulary->help;
if (!$vocabulary->multiple) {
$blank = ($vocabulary->required) ? t('- Please choose -') : t('- None selected -');
}
else {
$blank = ($vocabulary->required) ? 0 : t('- None -');
}
return _taxonomy_term_select(check_plain($vocabulary->name), $name, $value, $vid, $help, intval($vocabulary->multiple), $blank);
}
Comments
Comment #1
GreenJelly commented...
removed name as well as whats above...
Comment #2
GreenJelly commentedI will make a .patch according to what is needed. If $name is to be removed, then I will patch everything... if $name is to remain, I will .patch with just this description... There is another document change I am working on at... http://drupal.org/node/220226
I will be writing up the finished results on the other document change when I get back on Saturday.
I can contribute both changes... Or maybe just leave them as non-patch files and let the dev-developers pick and choose what they like. The documentation in the first post is new and more comprehensible. I got to run right now... I hope everything clear.
Here is the original...
As Ive been learning these functions I have been writing up this documentation... I have some great examples that can go along with it.
Comment #3
summit commentedHi, I read this post...is this helping to get this module working on it's own?
greetings, Martijn