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