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

Contents of /contributions/modules/css/css.install

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


Revision 1.2 - (show annotations) (download) (as text)
Fri Dec 26 15:20:36 2008 UTC (11 months ago) by fax8
Branch: MAIN
CVS Tags: DRUPAL-6--1-0-RC1, HEAD
Branch point for: DRUPAL-6--1
Changes since 1.1: +42 -18 lines
File MIME type: text/x-php
#347481 by jchan: Porting css.module to Drupal 6.x
1 <?php
2 // $Id: $
3
4 /**
5 * Database table schema definition.
6 */
7 function css_schema() {
8 $schema['css'] = array(
9 'description' => t('CSS rules added to individual nodes.'),
10 'fields' => array(
11 'nid' => array(
12 'description' => t('The {node}.nid for the CSS.'),
13 'type' => 'int',
14 'unsigned' => TRUE,
15 'not null' => TRUE,
16 'default' => 0
17 ),
18 'css' => array(
19 'description' => t('The primary identifier for the relation.'),
20 'type' => 'text',
21 'not null' => FALSE,
22 ),
23 ),
24 'primary key' => array('nid'),
25 );
26 return $schema;
27 }
28
29
30 /**
31 * Implementation of hook_install().
32 */
33 function css_install() {
34 drupal_install_schema('css');
35 }
36
37
38 /**
39 * Implementation of hook_uninstall().
40 */
41 function css_uninstall() {
42 drupal_uninstall_schema('css');
43 }

  ViewVC Help
Powered by ViewVC 1.1.2