/[drupal]/contributions/modules/taxonomy_title/taxonomy_title.install
ViewVC logotype

Contents of /contributions/modules/taxonomy_title/taxonomy_title.install

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (show annotations) (download) (as text)
Tue Mar 3 07:49:16 2009 UTC (8 months, 3 weeks ago) by jenlampton
Branch: MAIN
CVS Tags: DRUPAL-6--1-0, DRUPAL-6--1-1, HEAD
Changes since 1.1: +37 -14 lines
File MIME type: text/x-php
First commit of D6 version
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 }

  ViewVC Help
Powered by ViewVC 1.1.2