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

Contents of /contributions/modules/broken_anchor/broken_anchor.install

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


Revision 1.4 - (show annotations) (download) (as text)
Tue Feb 3 16:48:08 2009 UTC (9 months, 3 weeks ago) by ulhume
Branch: MAIN
CVS Tags: DRUPAL-6--1-0-RC3, HEAD
Changes since 1.3: +7 -7 lines
File MIME type: text/x-php
*** empty log message ***
1 <?php
2
3 /* This file is part of "Broken Anchor for Node comments Module".
4 * Copyright 2009, arNuméral
5 * Author : Yoran Brault
6 * eMail : yoran.brault@bad_arnumeral.fr (remove bad_ before sending an email)
7 * Site : http://www.arnumeral.fr/node/2
8 *
9 * "Broken Anchor for Node comments Module" is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License as
11 * published by the Free Software Foundation; either version 2.1 of
12 * the License, or (at your option) any later version.
13 *
14 * "Broken Anchor for Node comments Module" is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public
20 * License along with "Broken Anchor for Node comments Module"; if not, write to the Free
21 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
22 * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
23 */
24
25 /**
26 * Implementation of hook_schema().
27 */
28 function broken_anchor_schema() {
29 $schema['broken_anchor_errors'] = array(
30 'description' => t('Le node Produit.'),
31 'fields' => array(
32 'eid' => array('type' => 'serial','unsigned' => TRUE,'not null' => TRUE),
33 'cid' => array('type' => 'int','unsigned' => TRUE,'not null' => TRUE),
34 'module' => array('type' => 'varchar','length' => 50,'not null' => TRUE, 'default'=>'node'),
35 'value' => array('type' => 'varchar', 'length'=> 255, 'not null' => TRUE),
36 'value_type' => array('type' => 'int', 'unsigned'=> TRUE, 'not null' => TRUE),
37 'checked' => array('type' => 'int','unsigned' => TRUE,'not null' => TRUE),
38 'status' => array('type' => 'varchar', 'length'=> 30, 'not null' => TRUE),
39 'ignored' => array('type' => 'int', 'unsigned'=> TRUE, 'not null' => FALSE),
40 'count' => array('type' => 'int', 'unsigned'=> TRUE, 'not null' => TRUE, 'default'=>0),
41 ),
42 'primary key' => array('eid')
43 );
44
45 return $schema;
46 }
47
48 /**
49 * Implementation of hook_install().
50 */
51 function broken_anchor_install() {
52 $result=drupal_install_schema('broken_anchor');
53 return $result;
54 }
55
56 /**
57 * Implementation of hook_uninstall().
58 */
59 function broken_anchor_uninstall() {
60 $result=drupal_uninstall_schema('broken_anchor');
61 return $result;
62 }

  ViewVC Help
Powered by ViewVC 1.1.2