function commons_poll_add_taxonomy in Drupal Commons 6.2
Add taxonomy to poll nodes
1 call to commons_poll_add_taxonomy()
- commons_poll_install in modules/
features/ commons_poll/ commons_poll.install - Implementation of hook_install()
File
- modules/
features/ commons_poll/ commons_poll.install, line 32
Code
function commons_poll_add_taxonomy() {
$taxonomy = new stdClass();
$taxonomy->vid = variable_get('commons_tags_vid', 1);
$taxonomy->type = 'poll';
drupal_write_record('vocabulary_node_types', $taxonomy);
}