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

Contents of /contributions/modules/feedapi_mapper/feedapi_mapper.install

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


Revision 1.2 - (show annotations) (download) (as text)
Tue Jul 14 17:18:22 2009 UTC (4 months, 2 weeks ago) by alexb
Branch: MAIN
CVS Tags: HEAD
Branch point for: DRUPAL-6--2
Changes since 1.1: +27 -23 lines
File MIME type: text/x-php
Merge changes in DRUPAL-6--1 into HEAD.
1 <?php
2 // $Id: feedapi_mapper.install,v 1.1.4.2 2009/06/27 09:28:18 aronnovak Exp $
3
4 /**
5 * Implementation of hook_schema().
6 */
7 function feedapi_mapper_schema() {
8 $schema['feedapi_mapper'] = array(
9 'description' => 'Stores data for the feedapi mapper',
10 'fields' => array(
11 'nid' => array(
12 'description' => 'The primary identifier for the feed.',
13 'type' => 'int',
14 'unsigned' => TRUE,
15 'not null' => TRUE),
16 'mapping' => array(
17 'type' => 'text',
18 'size' => 'big',
19 'not null' => TRUE),
20 ),
21 'primary key' => array('nid'),
22 );
23 return $schema;
24 }
25
26 /**
27 * Implementation of hook_install().
28 */
29 function feedapi_mapper_install() {
30 drupal_install_schema('feedapi_mapper');
31 }
32
33 /**
34 * Implementation of hook_uninstall().
35 */
36 function feedapi_mapper_uninstall() {
37 drupal_uninstall_schema('feedapi_mapper');
38 }

  ViewVC Help
Powered by ViewVC 1.1.2