Dear Sirs,
i have found difficulty in adding a custom token type for the 'Vocabularies' kind.
Invoke all the tags for a desired vocabulary.
By choosing
<option value="vocabulary">Vocabularies [needs: vocabulary]</option>, it demands $data['vocabulary'] be declared.
Do not understand how to code it correctly.
By means of the "custom" (token type), correct snippet would be:
<?php
$result = "";
$vocabulary= taxonomy_vocabulary_machine_name_load('tags');
if ($terms = taxonomy_get_tree($vocabulary->vid)) {
foreach ($terms as $term) {
$taxonomy[] = $term->name;
$result = implode(',',$taxonomy) ;
}
return $result;
}
?>
Anyway, i wish i would understand how to declare through the Vocabularies option.
Closed: outdated
2.1
Miscellaneous
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.