| 1 |
<?php // $Id: taxonomy_title.install,v 1.1 2008/11/10 08:28:03 jenlampton Exp $
|
| 2 |
|
| 3 |
/**
|
| 4 |
* Implementation of hook_install().
|
| 5 |
*/
|
| 6 |
function taxonomy_title_install() {
|
| 7 |
// Create tables.
|
| 8 |
drupal_install_schema('taxonomy_title');
|
| 9 |
}
|
| 10 |
|
| 11 |
/**
|
| 12 |
* Implementation of hook_uninstall().
|
| 13 |
*/
|
| 14 |
function taxonomy_title_uninstall() {
|
| 15 |
// Remove tables.
|
| 16 |
drupal_uninstall_schema('taxonomy_title');
|
| 17 |
}
|
| 18 |
|
| 19 |
/**
|
| 20 |
* Implementation of hook_schema().
|
| 21 |
*/
|
| 22 |
function taxonomy_title_schema() {
|
| 23 |
$schema = array();
|
| 24 |
|
| 25 |
$schema['taxonomy_title'] = array(
|
| 26 |
'description' => 'Records separate titles/headings for taxonomy term pages',
|
| 27 |
'fields' => array(
|
| 28 |
'tid' => array(
|
| 29 |
'type' => 'int',
|
| 30 |
'length' => '11',
|
| 31 |
'unsigned' => TRUE,
|
| 32 |
'default' => 0,
|
| 33 |
'not null' => TRUE),
|
| 34 |
'title' => array(
|
| 35 |
'type' => 'varchar',
|
| 36 |
'length' => '255',
|
| 37 |
'default' => '',
|
| 38 |
'not null' => TRUE ),
|
| 39 |
),
|
| 40 |
'primary key' => array('tid'),
|
| 41 |
);
|
| 42 |
return $schema;
|
| 43 |
}
|