/**
* Make sure incoming vids are free tagging enabled.
*/
function taxonomy_node_validate(&$node) {
if ($node->taxonomy) {
$terms = $node->taxonomy;
if ($terms['tags']) {
foreach ($terms['tags'] as $vid => $vid_value) {
$vocabulary = taxonomy_get_vocabulary($vid);
if (!$vocabulary->tags) {
form_set_error("taxonomy[tags][$vid", t('The %name vocabulary can not be modified in this way.', array('%name' => theme('placeholder', $vocabulary->name))));
}
}
}
}
}
I'm not sure, but it looks like a typo on line 725 of taxonomy.module:
form_set_error("taxonomy[tags][$vid", t('The %name vocabulary can not be modified in this way.', array('%name' => theme('placeholder', $vocabulary->name))));
Comments
Comment #1
chx commentedCorrect. It should be taxonomy][tags][$vid IMO
Comment #2
myriad commentedUh, you mean what is there is correct or it should have the closing square bracket?
taxonomy[tags][$vid]
Comment #3
chx commentedcommented in the patch, anyways you want to read form_get_error.
Comment #4
gerhard killesreiter commentedapplied
Comment #5
(not verified) commented