1 | <?php |
---|
2 | /** |
---|
3 | * Sistema Automatizado para la Planificación Estratégico-Situacional en la Administración Pública Venezolana |
---|
4 | * @file proyecto_operativo_seguimiento.module |
---|
5 | * Drupal part Module to code proyectos operativos module |
---|
6 | * Copyright 2012 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. Diego Uzcategui |
---|
23 | * @date 2013-02-07 // (anno-mes-dia) |
---|
24 | * @version 0.1 |
---|
25 | * |
---|
26 | */ |
---|
27 | |
---|
28 | function _seguimientoMesNodo_content_type_export() { |
---|
29 | //--> put the cck export file here |
---|
30 | |
---|
31 | $content['type'] = array ( |
---|
32 | 'name' => 'Seguimiento Mes', |
---|
33 | 'type' => 'nodo_seguimiento_mes', |
---|
34 | 'description' => 'seguimiento de Proyecto, AE de Proyecto, o AC para un mes.', |
---|
35 | 'title_label' => 'TÃtulo', |
---|
36 | 'body_label' => '', |
---|
37 | 'min_word_count' => '0', |
---|
38 | 'help' => '', |
---|
39 | 'node_options' => |
---|
40 | array ( |
---|
41 | 'status' => true, |
---|
42 | 'promote' => true, |
---|
43 | 'sticky' => false, |
---|
44 | 'revision' => false, |
---|
45 | ), |
---|
46 | 'language_content_type' => '0', |
---|
47 | 'old_type' => 'nodo_seguimiento_mes', |
---|
48 | 'orig_type' => '', |
---|
49 | 'module' => 'node', |
---|
50 | 'custom' => '1', |
---|
51 | 'modified' => '1', |
---|
52 | 'locked' => '0', |
---|
53 | 'comment' => '2', |
---|
54 | 'comment_default_mode' => '4', |
---|
55 | 'comment_default_order' => '1', |
---|
56 | 'comment_default_per_page' => '50', |
---|
57 | 'comment_controls' => '3', |
---|
58 | 'comment_anonymous' => 0, |
---|
59 | 'comment_subject_field' => '1', |
---|
60 | 'comment_preview' => '1', |
---|
61 | 'comment_form_location' => '0', |
---|
62 | ); |
---|
63 | $content['fields'] = array ( |
---|
64 | 0 => |
---|
65 | array ( |
---|
66 | 'label' => 'id_seg', |
---|
67 | 'field_name' => 'field_id_seg_campo', |
---|
68 | 'type' => 'number_integer', |
---|
69 | 'widget_type' => 'number', |
---|
70 | 'change' => 'Change basic information', |
---|
71 | 'weight' => '31', |
---|
72 | 'description' => '', |
---|
73 | 'default_value' => |
---|
74 | array ( |
---|
75 | 0 => |
---|
76 | array ( |
---|
77 | 'value' => '', |
---|
78 | '_error_element' => 'default_value_widget][field_id_seg_campo][0][value', |
---|
79 | ), |
---|
80 | ), |
---|
81 | 'default_value_php' => '', |
---|
82 | 'default_value_widget' => NULL, |
---|
83 | 'group' => false, |
---|
84 | 'required' => 0, |
---|
85 | 'multiple' => '0', |
---|
86 | 'min' => '', |
---|
87 | 'max' => '', |
---|
88 | 'prefix' => '', |
---|
89 | 'suffix' => '', |
---|
90 | 'allowed_values' => '', |
---|
91 | 'allowed_values_php' => '', |
---|
92 | 'op' => 'Save field settings', |
---|
93 | 'module' => 'number', |
---|
94 | 'widget_module' => 'number', |
---|
95 | 'columns' => |
---|
96 | array ( |
---|
97 | 'value' => |
---|
98 | array ( |
---|
99 | 'type' => 'int', |
---|
100 | 'not null' => false, |
---|
101 | 'sortable' => true, |
---|
102 | ), |
---|
103 | ), |
---|
104 | 'display_settings' => |
---|
105 | array ( |
---|
106 | 'label' => |
---|
107 | array ( |
---|
108 | 'format' => 'above', |
---|
109 | 'exclude' => 0, |
---|
110 | ), |
---|
111 | 'teaser' => |
---|
112 | array ( |
---|
113 | 'format' => 'default', |
---|
114 | 'exclude' => 0, |
---|
115 | ), |
---|
116 | 'full' => |
---|
117 | array ( |
---|
118 | 'format' => 'default', |
---|
119 | 'exclude' => 0, |
---|
120 | ), |
---|
121 | 4 => |
---|
122 | array ( |
---|
123 | 'format' => 'default', |
---|
124 | 'exclude' => 0, |
---|
125 | ), |
---|
126 | ), |
---|
127 | ), |
---|
128 | 1 => |
---|
129 | array ( |
---|
130 | 'label' => 'Tipo Seguimiento', |
---|
131 | 'field_name' => 'field_tipo_seg_campo', |
---|
132 | 'type' => 'text', |
---|
133 | 'widget_type' => 'optionwidgets_select', |
---|
134 | 'change' => 'Change basic information', |
---|
135 | 'weight' => '32', |
---|
136 | 'description' => '', |
---|
137 | 'default_value' => |
---|
138 | array ( |
---|
139 | 0 => |
---|
140 | array ( |
---|
141 | 'value' => '', |
---|
142 | ), |
---|
143 | ), |
---|
144 | 'default_value_php' => '', |
---|
145 | 'default_value_widget' => NULL, |
---|
146 | 'group' => false, |
---|
147 | 'required' => 0, |
---|
148 | 'multiple' => '0', |
---|
149 | 'text_processing' => '0', |
---|
150 | 'max_length' => '', |
---|
151 | 'allowed_values' => '1 | Proyecto Operativo |
---|
152 | 2 | Acción EspecÃfica de Proyecto |
---|
153 | 3 | Acciones Centralizadas', |
---|
154 | 'allowed_values_php' => '', |
---|
155 | 'op' => 'Save field settings', |
---|
156 | 'module' => 'text', |
---|
157 | 'widget_module' => 'optionwidgets', |
---|
158 | 'columns' => |
---|
159 | array ( |
---|
160 | 'value' => |
---|
161 | array ( |
---|
162 | 'type' => 'text', |
---|
163 | 'size' => 'big', |
---|
164 | 'not null' => false, |
---|
165 | 'sortable' => true, |
---|
166 | 'views' => true, |
---|
167 | ), |
---|
168 | ), |
---|
169 | 'display_settings' => |
---|
170 | array ( |
---|
171 | 'label' => |
---|
172 | array ( |
---|
173 | 'format' => 'above', |
---|
174 | 'exclude' => 0, |
---|
175 | ), |
---|
176 | 'teaser' => |
---|
177 | array ( |
---|
178 | 'format' => 'default', |
---|
179 | 'exclude' => 0, |
---|
180 | ), |
---|
181 | 'full' => |
---|
182 | array ( |
---|
183 | 'format' => 'default', |
---|
184 | 'exclude' => 0, |
---|
185 | ), |
---|
186 | 4 => |
---|
187 | array ( |
---|
188 | 'format' => 'default', |
---|
189 | 'exclude' => 0, |
---|
190 | ), |
---|
191 | ), |
---|
192 | ), |
---|
193 | ); |
---|
194 | $content['extra'] = array ( |
---|
195 | 'title' => '-5', |
---|
196 | 'revision_information' => '20', |
---|
197 | 'author' => '20', |
---|
198 | 'options' => '25', |
---|
199 | 'comment_settings' => '30', |
---|
200 | 'menu' => '-2', |
---|
201 | ); |
---|
202 | |
---|
203 | return $content; |
---|
204 | } |
---|