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

Contents of /contributions/modules/cssapi/cssapi.install

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


Revision 1.1 - (show annotations) (download) (as text)
Mon Aug 4 14:22:10 2008 UTC (15 months, 3 weeks ago) by jjeff
Branch: MAIN
CVS Tags: DRUPAL-6--0-5-alpha, HEAD
File MIME type: text/x-php
Initial CSS API module. Provides functions for editing/replacing/removing CSS files
1 <?php
2 // $Id$
3
4 /**
5 * Implementation of hook_schema().
6 */
7 function cssapi_schema() {
8 $schema['cssapi'] = array(
9 'fields' => array(
10 'vid' => array('type' => 'serial', 'not null' => 1, 'disp-width' => '10'),
11 'timestamp' => array('type' => 'int', 'not null' => 1, 'disp-width' => '12'),
12 'sheet' => array('type' => 'varchar', 'length' => '128', 'not null' => 1),
13 'content' => array('type' => 'text', 'size' => 'big', 'not null' => 1)),
14 'primary key' => array('vid'),
15 'indexes' => array(
16 'sheet' => array('sheet')),
17 );
18 return $schema;
19 }
20
21 /**
22 * Implementation of hook_install()
23 */
24 function cssapi_install() {
25 drupal_install_schema('cssapi');
26 }
27
28 /**
29 * Implementation of hook_uninstall()
30 */
31 function cssapi_uninstall() {
32 drupal_uninstall_schema('cssapi');
33 }
34
35
36 /**
37 * Implementation of hook_disable().
38 */
39 function cssapi_disable() {
40 // nothing yet
41 }

  ViewVC Help
Powered by ViewVC 1.1.2