| 1 |
<?php
|
| 2 |
// $Id: taxonomy_dhtml.install,v 1.1 2008/10/01 08:25:08 darthclue Exp $
|
| 3 |
|
| 4 |
/**
|
| 5 |
* @file
|
| 6 |
* Installation routines for taxonomy dhtml module.
|
| 7 |
*/
|
| 8 |
|
| 9 |
/**
|
| 10 |
* Implementation of hook_install().
|
| 11 |
*/
|
| 12 |
function taxonomy_dhtml_install() {
|
| 13 |
// Create tables.
|
| 14 |
drupal_install_schema('taxonomy_dhtml');
|
| 15 |
}
|
| 16 |
|
| 17 |
/**
|
| 18 |
* Implementation of hook_uninstall().
|
| 19 |
*/
|
| 20 |
function taxonomy_dhtml_uninstall() {
|
| 21 |
// Remove tables.
|
| 22 |
drupal_uninstall_schema('taxonomy_dhtml');
|
| 23 |
}
|
| 24 |
|
| 25 |
function taxonomy_dhtml_update_6100() {
|
| 26 |
$ret = array();
|
| 27 |
db_add_field($ret, 'taxonomy_dhtml', 'depth', array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'description' => t('The depth to use for hiearchical vocabularies'), 'default' => 0));
|
| 28 |
return $ret;
|
| 29 |
}
|
| 30 |
|
| 31 |
/**
|
| 32 |
* Implementation of hook_schema().
|
| 33 |
*/
|
| 34 |
function taxonomy_dhtml_schema() {
|
| 35 |
$schema['taxonomy_dhtml'] = array(
|
| 36 |
'description' => t('Stores taxonomy dhtml settings.'),
|
| 37 |
'fields' => array(
|
| 38 |
'vid' => array(
|
| 39 |
'type' => 'int',
|
| 40 |
'unsigned' => TRUE,
|
| 41 |
'not null' => TRUE,
|
| 42 |
'description' => t('The {vocabulary}.vid of the vocabulary to which the term is assigned.'),
|
| 43 |
'default' => 0,
|
| 44 |
),
|
| 45 |
'noi' => array(
|
| 46 |
'type' => 'int',
|
| 47 |
'unsigned' => TRUE,
|
| 48 |
'not null' => TRUE,
|
| 49 |
'description' => t('The number of items to show with the dhtml output.'),
|
| 50 |
'default' => 0,
|
| 51 |
),
|
| 52 |
'depth' => array(
|
| 53 |
'type' => 'int',
|
| 54 |
'unsigned' => TRUE,
|
| 55 |
'not null' => TRUE,
|
| 56 |
'description' => t('The depth to use for hiearchical vocabularies'),
|
| 57 |
'default' => 0,
|
| 58 |
),
|
| 59 |
'expblock' => array(
|
| 60 |
'type' => 'int',
|
| 61 |
'unsigned' => TRUE,
|
| 62 |
'not null' => TRUE,
|
| 63 |
'description' => t('Boolean to indicate if we are making this available on the block page.'),
|
| 64 |
'default' => 0,
|
| 65 |
),
|
| 66 |
),
|
| 67 |
);
|
| 68 |
|
| 69 |
return $schema;
|
| 70 |
}
|
| 71 |
|