source: sipes/0.3-modules/proyectos_operativos/views/proyectos_operativos.views.inc @ dba7f09

stableversion-3.0
Last change on this file since dba7f09 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.1 KB
Línea 
1<?php
2/**
3  * Sistema Integral de Planificación y Presupuesto (SIPP)
4  * @file proyectos_operativos.views.inc
5  * Drupal part Module to Sistema Integral de Planificación y Presupuesto (SIPP)
6  * Copyright 2014 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 - Msc. Juan Vizcarrondo
23  * @date 2015-02-06 // (a&#241;o-mes-dia)
24  * @version 0.2 // (0.1)
25  *
26  */
27
28/**
29 * Implementation of hook_views_data()
30 */
31function proyectos_operativos_views_data() {
32  $data['ente_planificador']['ente_planificador_agrega_links_proyectos'] = array(
33    'title' => t('Enlace Agregar Proyecto'),
34    'help' => t('Muestra un enlace para agregar un proyecto al ente.'),
35    'field' => array(
36      'additional fields' => array(
37        'nid' => array(
38          'table' => 'node',
39          'field' => 'nid',
40        ),
41      ),
42      'handler' => 'ente_planificador_handler_field_agrega_links_proyectos',
43    ),
44  );
45  return $data;
46}
47
48/*
49 * Implementation of hook_views_handlers
50 */
51function proyectos_operativos_views_handlers() {
52  return array(
53    'info' => array(
54      'path' => drupal_get_path('module', 'proyectos_operativos') .'/views',
55    ),
56    'handlers' => array(
57      'ente_planificador_handler_field_agrega_links_proyectos' => array(
58        'parent' => 'views_handler_field',
59      ),
60    ),
61  );
62}
Nota: Vea TracBrowser para ayuda de uso del navegador del repositorio.