stableversion-3.0
Last change
on this file since dd692b1 was
dd692b1,
checked in by José Gregorio Puentes <jpuentes@…>, 9 años ago
|
se agregaron los modulos
|
-
Propiedad mode establecida a
100755
|
File size:
1.3 KB
|
Línea | |
---|
1 | <?php |
---|
2 | /** |
---|
3 | * Implementation of hook_install() |
---|
4 | */ |
---|
5 | function entes_encuesta_install() { |
---|
6 | // Utiliza el schema API para crear la tabla en la base de datos |
---|
7 | drupal_install_schema('entes_encuesta'); |
---|
8 | } |
---|
9 | /** |
---|
10 | * Implementation of hook_uninstall(). |
---|
11 | */ |
---|
12 | function entes_encuesta_uninstall() { |
---|
13 | // Utiliza el schema API para eliminar la tabla en la base de datos. |
---|
14 | drupal_uninstall_schema('entes_encuesta'); |
---|
15 | } |
---|
16 | /** |
---|
17 | * Implementation of hook_schema(). |
---|
18 | */ |
---|
19 | function entes_encuesta_schema() { |
---|
20 | $schema['webform_ente_planificador'] = array( |
---|
21 | 'description' => 'Encuesta de los entes planificadores.', |
---|
22 | 'fields' => array( |
---|
23 | 'nid_webform' => array( |
---|
24 | 'description' => 'el nid del webform.', |
---|
25 | 'type' => 'int', |
---|
26 | 'length' => 15, |
---|
27 | 'not null' => TRUE, |
---|
28 | 'default' => 0, |
---|
29 | 'unsigned' => TRUE, |
---|
30 | ), |
---|
31 | 'nid_ente' => array( |
---|
32 | 'description' => 'el nid del ente planificador.', |
---|
33 | 'type' => 'int', |
---|
34 | 'length' => 15, |
---|
35 | 'not null' => TRUE, |
---|
36 | 'default' => 0, |
---|
37 | 'unsigned' => TRUE, |
---|
38 | ), |
---|
39 | 'uid_users' => array( |
---|
40 | 'description' => 'el uid del usuario.', |
---|
41 | 'type' => 'int', |
---|
42 | 'length' => 15, |
---|
43 | 'not null' => TRUE, |
---|
44 | 'default' => 0, |
---|
45 | 'unsigned' => TRUE, |
---|
46 | ), |
---|
47 | ), |
---|
48 | ); |
---|
49 | return $schema; |
---|
50 | } |
---|
Nota: Vea
TracBrowser
para ayuda de uso del navegador del repositorio.