You are here

function commons_document_add_taxonomy in Drupal Commons 6.2

Add taxonomy to document nodes

1 call to commons_document_add_taxonomy()
commons_document_install in modules/features/commons_document/commons_document.install
Implementation of hook_install()

File

modules/features/commons_document/commons_document.install, line 35

Code

function commons_document_add_taxonomy() {
  $taxonomy = new stdClass();
  $taxonomy->vid = variable_get('commons_tags_vid', 1);
  $taxonomy->type = 'document';
  drupal_write_record('vocabulary_node_types', $taxonomy);
}