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