Hi guys,
In the following function, I changed the '%pics' entries from $value to $content['value'] which I think would do better. What do you think?
function nodewords_extra_pics_prepare(&$tags, $content, $options) {
if (!empty($content['value'])) {
if ($options['type'] == NODEWORDS_TYPE_NODE) {
$tags['pics-label'] = strtr(
'(pics-1.1 "http://www.icra.org/pics/vocabularyv03/" l gen true for %url r (%pics))',
array(
'%url' => nodewords_url("node/{$options['id']}"),
'%pics' => $content['value'],
)
);
}
elseif ($options['type'] == NODEWORDS_TYPE_PAGE) {
$tags['pics-label'] = strtr(
'(pics-1.1 "http://www.icra.org/pics/vocabularyv03/" l gen true for %url r (%pics))',
array(
'%url' => nodewords_url($_GET['q']),
'%pics' => $content['value'],
)
);
}
}
if (variable_get('nodewords_icra_validation_content', '')) {
$tags['pics-label:meta'] = nodewords_url('labels.rdf', array('absolute' => TRUE));
}
}
Comments
Comment #1
damienmckennaThis module is under new maintainership. Unfortunately the v6.x-2.x branch is no longer supported, please revert to using the v6.x-1.x branch.
Seeing as you have been using the v6.x-2.x branch, if there were specific features you had been using which are not present in v6.x-1.x, please open Feature Request issues so we can evaluate them.
Thank you, and again we apologize for this inconvenience.
Comment #2
AlexisWilke commentedSorry for the mistake, it is in 1.x. I never tried 2.x for Nodewords, but I have something like 200 3rd party modules...
I do not think this is a show stopper, although since it is dead simple to fix, you could just apply the patch and be done with it. You can look closer if you want to and see that the variables used are not defined as mentioned in my first post.
Thank you.
Alexis Wilke
Comment #4
AlexisWilke commentedTesting with one less folder name...
Comment #5
dave reidThis should not be relevant anymore pending #927186: FOSI no longer supports ICRA.