/ Published in: PHP

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function vocabulary_to_options($vid) { $tree = taxonomy_get_tree($vid); if ($tree) { foreach ($tree as $term) { $choice = new stdClass(); $options[] = $choice; } } return $options; }
Comments
