source: sipes/0.3-modules/proyectos_operativos_revision/proyectos_operativos_revision.install @ 303fae2

stableversion-3.0
Last change on this file since 303fae2 was 303fae2, checked in by José Gregorio Puentes <jpuentes@…>, 9 años ago

se agregaron los modulos

  • Propiedad mode establecida a 100755
File size: 2.6 KB
Línea 
1<?php
2  /**
3  * Sistema Integral de Planificación y Presupuesto (SIPP)
4  * @file proyectos_operativos_mcti.module
5  * Drupal part Module to Sistema Integral de Planificación y Presupuesto (SIPP)
6  * Copyright 2013 Sistema Automatizado para la Planificación Estratégico-Situacional en la Administración Pública Venezolana (CENDITEL)
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
21  *
22  * @author Cenditel Merida - Ing. Jose Puentes
23  * @date 2015-02-03 // (a&#241;o-mes-dia)
24  * @version 0.1 // (0.1)
25  *
26  */
27/*
28 * Implementation of hook_install
29 */
30function proyectos_operativos_revision_install() {
31  //colocar el modulo proyectos_operativos_mcti entre los ultimos a leer
32  db_query("UPDATE {system} SET weight = 5 WHERE name = 'proyectos_operativos_revision'");
33  drupal_install_schema('proyectos_operativos_revision');
34  content_notify('install', 'proyectos_operativos_revision');
35}
36
37/*
38 * Implementation of hook_uninstall
39 */
40function proyectos_operativos_revision_uninstall() {
41  drupal_uninstall_schema('proyectos_operativos_revision');
42  content_notify('uninstall', 'proyectos_operativos_revision');
43}
44
45/*
46 * Implementation of hook_schema
47 */
48function proyectos_operativos_revision_schema() {
49  $schema['proyectos_operativos_workflow_revision'] = array(
50    'description' => 'Flujo de trabajo de las revisiones del proyecto.',
51    'fields' => array(
52      'nid' => array(
53        'description' => 'nid del nodo.',
54        'type' => 'int',
55        'unsigned' => TRUE,
56        'not null' => TRUE,
57        'default' => 0,
58      ),
59      'vid' => array(
60        'description' => 'vid del nodo.',
61        'type' => 'int',
62        'unsigned' => TRUE,
63        'not null' => TRUE,
64        'default' => 0,
65      ),
66     'sid' => array(
67        'description' => 'sid del workflow.',
68        'type' => 'int',
69        'unsigned' => TRUE,
70        'not null' => TRUE,
71        'default' => 0,
72      ),
73    ),
74    'indexes' => array(
75      'nid' => array('nid'),
76      'sid' => array('sid'),
77    ),
78  );
79  return $schema;
80}
81
Nota: Vea TracBrowser para ayuda de uso del navegador del repositorio.