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

Contents of /contributions/modules/zend_feed/zend_feed.install

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


Revision 1.3 - (show annotations) (download) (as text)
Mon Sep 28 21:05:08 2009 UTC (8 weeks, 3 days ago) by mustafau
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +4 -4 lines
File MIME type: text/x-php
"files[]" array in info file.
Use "Implement ..." instead of "Implementation of ..."
1 <?php
2 // $Id: zend_feed.install,v 1.2 2009/09/28 19:22:24 mustafau Exp $
3
4 /**
5 * Implement hook_install().
6 */
7 function zend_feed_install() {
8 // Create tables.
9 drupal_install_schema('zend_feed');
10 }
11
12 /**
13 * Implement hook_uninstall().
14 */
15 function zend_feed_uninstall() {
16 // Remove tables.
17 drupal_uninstall_schema('zend_feed');
18
19 variable_del('zend_feed_autodiscovery');
20 }
21
22 /**
23 * Implement hook_schema().
24 */
25 function zend_feed_schema() {
26 $schema['zend_feed'] = array(
27 'fields' => array(
28 'url' => array(
29 'type' => 'varchar',
30 'length' => 255,
31 'not null' => TRUE,
32 'default' => ''
33 ),
34 'etag' => array(
35 'type' => 'varchar',
36 'length' => 255,
37 'not null' => TRUE,
38 'default' => ''
39 ),
40 'modified' => array(
41 'type' => 'int',
42 'not null' => TRUE,
43 'default' => 0
44 ),
45 'alternate' => array(
46 'type' => 'varchar',
47 'length' => 255,
48 'not null' => TRUE,
49 'default' => ''
50 )
51 ),
52 'primary key' => array('url'),
53 'indexes' => array('alternate' => array('alternate')),
54 );
55
56 $schema['cache_zend_feed'] = drupal_get_schema_unprocessed('system', 'cache');
57 $schema['cache_zend_feed']['description'] = '';
58
59 return $schema;
60 }

  ViewVC Help
Powered by ViewVC 1.1.2