You are here

taxonomy_manager.install in Taxonomy Manager 6

File

taxonomy_manager.install
View source
<?php

// $Id: $

/**
 * Implementation of hook_install
 */
function taxonomy_manager_install() {
  drupal_install_schema('taxonomy_manager');
}

/**
 * Implementation of hook_uninstall
 */
function taxonomy_manager_uninstall() {
  drupal_uninstall_schema('taxonomy_manager');
}

/**
 * Implementation of hook_schema()
 */
function taxonomy_manager_schema() {
  $schema['taxonomy_manager_merge'] = array(
    'fields' => array(
      'main_tid' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'default' => 0,
      ),
      'merged_tid' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'default' => 0,
      ),
    ),
    'primary key' => array(
      'merged_tid',
    ),
  );
  return $schema;
}

/**
 * Implementation of hook_update_N().
 *
 * just run through the update process so that the menu and theme registry cache gets cleared
 */
function taxonomy_manager_update_6001() {
  return array();
}

Functions

Namesort descending Description
taxonomy_manager_install Implementation of hook_install
taxonomy_manager_schema Implementation of hook_schema()
taxonomy_manager_uninstall Implementation of hook_uninstall
taxonomy_manager_update_6001 Implementation of hook_update_N().