stableversion-3.0
Last change
on this file was
177a560,
checked in by José Gregorio Puentes <jpuentes@…>, 8 años ago
|
se agrego el directorio de modulos contribuidos de drupal
|
-
Propiedad mode establecida a
100644
|
File size:
1.1 KB
|
Línea | |
---|
1 | <?php |
---|
2 | // $Id: revision_moderation.install,v 1.5.2.2 2008/12/19 22:10:23 add1sun Exp $ |
---|
3 | |
---|
4 | /** |
---|
5 | * Implementation of hook_schema(). |
---|
6 | */ |
---|
7 | function revision_moderation_schema() { |
---|
8 | $schema['revision_moderation'] = array( |
---|
9 | 'description' => 'holds the last approved revision of the node', |
---|
10 | 'fields' => array( |
---|
11 | 'nid' => array( |
---|
12 | 'type' => 'int', |
---|
13 | 'unsigned' => TRUE, |
---|
14 | 'not null' => TRUE, |
---|
15 | 'description' => 'Node ID', |
---|
16 | 'default' => 0 |
---|
17 | ), |
---|
18 | 'revision_moderation' => array( |
---|
19 | 'type' => 'int', |
---|
20 | 'not null' => TRUE, |
---|
21 | 'default' => 0, |
---|
22 | 'size' => 'tiny', |
---|
23 | 'description' => 'last approved revision for the {nid}' |
---|
24 | ), |
---|
25 | ), |
---|
26 | 'primary key' => array('nid'), |
---|
27 | ); |
---|
28 | |
---|
29 | return $schema; |
---|
30 | } |
---|
31 | |
---|
32 | /** |
---|
33 | * Implementation of hook_install(). |
---|
34 | */ |
---|
35 | function revision_moderation_install() { |
---|
36 | // Create table |
---|
37 | drupal_install_schema('revision_moderation'); |
---|
38 | } |
---|
39 | |
---|
40 | /** |
---|
41 | * Implementation of hook_uninstall(). |
---|
42 | */ |
---|
43 | function revision_moderation_uninstall() { |
---|
44 | // Drop the table |
---|
45 | drupal_uninstall_schema('revision_moderation'); |
---|
46 | variable_del('revision_moderation_exempt'); |
---|
47 | } |
---|
Nota: Vea
TracBrowser
para ayuda de uso del navegador del repositorio.