source: sipes/0.3-modules/proyectos_operativos_revision/views/proyectos_operativos_revision.views_default.inc @ 2fa3319

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

se agregaron los modulos

  • Propiedad mode establecida a 100755
File size: 10.8 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/**
29 * Implementation of hook_views_default_views().
30 */
31function proyectos_operativos_revision_views_default_views() {
32  $view = new view;
33  $views = array();
34        $view->name = 'Lista_proyectos_revisiones';
35        $view->description = 'lista de las revisiones de los proyectos operativos.';
36        $view->tag = '';
37        $view->view_php = '\\x5c78356337383335363333373338333333353336333333333337333333383333333333333335333333363333333333333333333333373333333333333338333333333333333333333333333333353333333333333336333333333333333333333333333333333333333333333337333333333333333333333333333333383333333333333333333333333333333333333333333333333333333333333335333333333333333333333333333333363333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333373333333333333333333333333333333333333333333333333333333333333338';
38        $view->base_table = 'node_revisions';
39        $view->is_cacheable = FALSE;
40        $view->api_version = 2;
41        $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
42        $handler = $view->new_display('default', 'Predefinidos', 'default');
43        $handler->override_option('fields', array(
44                'title' => array(
45                  'label' => 'Proyecto',
46                  'alter' => array(
47                    'alter_text' => 0,
48                    'text' => '',
49                    'make_link' => 0,
50                    'path' => '',
51                    'link_class' => '',
52                    'alt' => '',
53                    'prefix' => '',
54                    'suffix' => '',
55                    'target' => '',
56                    'help' => '',
57                    'trim' => 0,
58                    'max_length' => '',
59                    'word_boundary' => 1,
60                    'ellipsis' => 1,
61                    'html' => 0,
62                    'strip_tags' => 0,
63                  ),
64                  'empty' => '',
65                  'hide_empty' => 0,
66                  'empty_zero' => 0,
67                  'link_to_node' => 1,
68                  'link_to_node_revision' => 0,
69                  'exclude' => 0,
70                  'id' => 'title',
71                  'table' => 'node_revisions',
72                  'field' => 'title',
73                  'relationship' => 'none',
74                ),
75                'sid' => array(
76                  'label' => 'Estado del Proyecto',
77                  'alter' => array(
78                    'alter_text' => 0,
79                    'text' => '',
80                    'make_link' => 0,
81                    'path' => '',
82                    'link_class' => '',
83                    'alt' => '',
84                    'prefix' => '',
85                    'suffix' => '',
86                    'target' => '',
87                    'help' => '',
88                    'trim' => 0,
89                    'max_length' => '',
90                    'word_boundary' => 1,
91                    'ellipsis' => 1,
92                    'html' => 0,
93                    'strip_tags' => 0,
94                  ),
95                  'empty' => '',
96                  'hide_empty' => 0,
97                  'empty_zero' => 0,
98                  'exclude' => 0,
99                  'id' => 'sid',
100                  'table' => 'proyectos_operativos_workflow_revision',
101                  'field' => 'sid',
102                  'override' => array(
103                    'button' => 'Sobreescribir',
104                  ),
105                  'relationship' => 'none',
106                ),
107                'nid' => array(
108                  'label' => 'Nid',
109                  'alter' => array(
110                    'alter_text' => 0,
111                    'text' => '',
112                    'make_link' => 0,
113                    'path' => '',
114                    'link_class' => '',
115                    'alt' => '',
116                    'prefix' => '',
117                    'suffix' => '',
118                    'target' => '',
119                    'help' => '',
120                    'trim' => 0,
121                    'max_length' => '',
122                    'word_boundary' => 1,
123                    'ellipsis' => 1,
124                    'html' => 0,
125                    'strip_tags' => 0,
126                  ),
127                  'empty' => '',
128                  'hide_empty' => 0,
129                  'empty_zero' => 0,
130                  'link_to_node' => 0,
131                  'exclude' => 1,
132                  'id' => 'nid',
133                  'table' => 'node',
134                  'field' => 'nid',
135                  'override' => array(
136                    'button' => 'Sobreescribir',
137                  ),
138                  'relationship' => 'none',
139                ),
140                'vid' => array(
141                  'label' => 'Vid',
142                  'alter' => array(
143                    'alter_text' => 0,
144                    'text' => '',
145                    'make_link' => 0,
146                    'path' => '',
147                    'link_class' => '',
148                    'alt' => '',
149                    'prefix' => '',
150                    'suffix' => '',
151                    'target' => '',
152                    'help' => '',
153                    'trim' => 0,
154                    'max_length' => '',
155                    'word_boundary' => 1,
156                    'ellipsis' => 1,
157                    'html' => 0,
158                    'strip_tags' => 0,
159                  ),
160                  'empty' => '',
161                  'hide_empty' => 0,
162                  'empty_zero' => 0,
163                  'exclude' => 1,
164                  'id' => 'vid',
165                  'table' => 'node_revisions',
166                  'field' => 'vid',
167                  'override' => array(
168                    'button' => 'Sobreescribir',
169                  ),
170                  'relationship' => 'none',
171                ),
172                'timestamp' => array(
173                  'label' => 'Fecha de Modificación',
174                  'alter' => array(
175                    'alter_text' => 0,
176                    'text' => '',
177                    'make_link' => 0,
178                    'path' => '',
179                    'link_class' => '',
180                    'alt' => '',
181                    'prefix' => '',
182                    'suffix' => '',
183                    'target' => '',
184                    'help' => '',
185                    'trim' => 0,
186                    'max_length' => '',
187                    'word_boundary' => 1,
188                    'ellipsis' => 1,
189                    'html' => 0,
190                    'strip_tags' => 0,
191                  ),
192                  'empty' => '',
193                  'hide_empty' => 0,
194                  'empty_zero' => 0,
195                  'date_format' => 'large',
196                  'custom_date_format' => '',
197                  'exclude' => 0,
198                  'id' => 'timestamp',
199                  'table' => 'node_revisions',
200                  'field' => 'timestamp',
201                  'override' => array(
202                    'button' => 'Sobreescribir',
203                  ),
204                  'relationship' => 'none',
205                ),
206        ));
207        $handler->override_option('sorts', array(
208                'title' => array(
209                  'order' => 'ASC',
210                  'id' => 'title',
211                  'table' => 'node_revisions',
212                  'field' => 'title',
213                  'override' => array(
214                    'button' => 'Sobreescribir',
215                  ),
216                  'relationship' => 'none',
217                ),
218        ));
219        $handler->override_option('arguments', array(
220                'nid' => array(
221                  'default_action' => 'default',
222                  'style_plugin' => 'default_summary',
223                  'style_options' => array(),
224                  'wildcard' => 'all',
225                  'wildcard_substitution' => 'Todo(s)',
226                  'title' => '',
227                  'breadcrumb' => '',
228                  'default_argument_type' => 'node',
229                  'default_argument' => '',
230                  'validate_type' => 'none',
231                  'validate_fail' => 'empty',
232                  'break_phrase' => 0,
233                  'not' => 0,
234                  'id' => 'nid',
235                  'table' => 'node',
236                  'field' => 'nid',
237                  'validate_user_argument_type' => 'uid',
238                  'validate_user_roles' => array(
239                    '2' => 0,
240                    '36' => 0,
241                    '40' => 0,
242                    '37' => 0,
243                    '38' => 0,
244                    '42' => 0,
245                    '62' => 0,
246                    '63' => 0,
247                    '41' => 0,
248                    '43' => 0,
249                    '45' => 0,
250                    '65' => 0,
251                    '66' => 0,
252                    '44' => 0,
253                    '46' => 0,
254                    '48' => 0,
255                    '68' => 0,
256                    '69' => 0,
257                    '47' => 0,
258                    '49' => 0,
259                    '51' => 0,
260                    '71' => 0,
261                    '72' => 0,
262                    '50' => 0,
263                    '52' => 0,
264                    '74' => 0,
265                    '75' => 0,
266                    '76' => 0,
267                    '39' => 0,
268                  ),
269                  'override' => array(
270                    'button' => 'Sobreescribir',
271                  ),
272                  'relationship' => 'none',
273                  'default_options_div_prefix' => '',
274                  'default_argument_fixed' => '',
275                  'default_argument_user' => 0,
276                  'default_argument_php' => '',
277                  'validate_argument_node_type' => array(
278                    'accion_centralizada' => 0,
279                    'accion_especifica' => 0,
280                    'proyectos_operativos' => 0,
281                    'ente_planificador' => 0,
282                    'page' => 0,
283                    'story' => 0,
284                  ),
285                  'validate_argument_node_access' => 0,
286                  'validate_argument_nid_type' => 'nid',
287                  'validate_argument_vocabulary' => array(
288                    '45' => 0,
289                    '4' => 0,
290                    '1' => 0,
291                    '9' => 0,
292                    '44' => 0,
293                    '6' => 0,
294                    '5' => 0,
295                    '8' => 0,
296                    '3' => 0,
297                    '2' => 0,
298                    '10' => 0,
299                  ),
300                  'validate_argument_type' => 'tid',
301                  'validate_argument_transform' => 0,
302                  'validate_user_restrict_roles' => 0,
303                  'validate_argument_php' => '',
304                ),
305        ));
306        $handler->override_option('access', array(
307                'type' => 'perm',
308                'perm' => 'ver planificador',
309        ));
310        $handler->override_option('cache', array(
311                'type' => 'none',
312        ));
313        $handler->override_option('title', 'Historial de modificaciones del Proyecto');
314        $handler->override_option('use_pager', '1');
315        $handler->override_option('style_plugin', 'bulk');
316        $handler->override_option('style_options', array(
317                'grouping' => '',
318                'override' => 1,
319                'sticky' => 1,
320                'order' => 'asc',
321                'columns' => array(
322                  'title' => 'title',
323                  'sid' => 'sid',
324                  'nid' => 'nid',
325                  'vid' => 'vid',
326                  'timestamp' => 'timestamp',
327                ),
328                'info' => array(
329                  'title' => array(
330                    'sortable' => 0,
331                    'separator' => '',
332                  ),
333                  'sid' => array(
334                    'separator' => '',
335                  ),
336                  'nid' => array(
337                    'sortable' => 0,
338                    'separator' => '',
339                  ),
340                  'vid' => array(
341                    'sortable' => 0,
342                    'separator' => '',
343                  ),
344                  'timestamp' => array(
345                    'sortable' => 0,
346                    'separator' => '',
347                  ),
348                ),
349                'default' => 'title',
350                'execution_type' => '1',
351                'max_performance' => 0,
352                'display_type' => '0',
353                'hide_selector' => 1,
354                'preserve_selection' => 1,
355                'display_result' => 0,
356                'merge_single_action' => 1,
357                'operations' => array(
358                  'proyectos_operativos_revision_action' => array(
359                    'selected' => 1,
360                    'skip_confirmation' => 1,
361                    'label' => 'Comparar version del proyecto',
362                  ),
363                  'system_send_email_action' => array(
364                    'selected' => 0,
365                    'skip_confirmation' => 0,
366                    'label' => '',
367                  ),
368                  'views_bulk_operations_action' => array(
369                    'selected' => 0,
370                    'skip_confirmation' => 0,
371                    'label' => '',
372                  ),
373                  'views_bulk_operations_script_action' => array(
374                    'selected' => 0,
375                    'skip_confirmation' => 0,
376                    'label' => '',
377                  ),
378                  'system_message_action' => array(
379                    'selected' => 0,
380                    'skip_confirmation' => 0,
381                    'label' => '',
382                  ),
383                  'views_bulk_operations_argument_selector_action' => array(
384                    'selected' => 0,
385                    'skip_confirmation' => 0,
386                    'label' => '',
387                  ),
388                  'system_goto_action' => array(
389                    'selected' => 0,
390                    'skip_confirmation' => 0,
391                    'label' => '',
392                  ),
393                ),
394        ));
395        $handler = $view->new_display('page', 'historial', 'page_1');
396        $handler->override_option('path', 'proyectosop/%/cambios_realizados');
397        $handler->override_option('menu', array(
398                'type' => 'tab',
399                'title' => 'Cambios realizados al proyecto',
400                'description' => 'Historico de los cambios realizados en el proyecto',
401                'weight' => '0',
402                'name' => 'navigation',
403        ));
404        $handler->override_option('tab_options', array(
405                'type' => 'none',
406                'title' => '',
407                'description' => '',
408                'weight' => 0,
409                'name' => 'navigation',
410        ));
411  $views[$view->name] = $view;
412  return $views;
413}
Nota: Vea TracBrowser para ayuda de uso del navegador del repositorio.