Conjunto de cambios 08b1d21 en sipes para 0.3-modules/ente_planificador_term_fields
- Fecha y hora:
- 12/07/2016 11:58:15 (hace 8 años)
- Branches:
- stable, version-3.0
- Children:
- 1951ae0f
- Parents:
- 1e1a1be
- Fichero:
-
- 1 editado
Leyenda
- No modificado
- Añadido
- Eliminado
-
0.3-modules/ente_planificador_term_fields/ente_planificador_term_fields.module
r0f39f34 r08b1d21 10 10 function ente_planificador_term_fields_form_alter(&$form, $form_state, $form_id) { 11 11 if ($form_id == 'ente_planificador_admin_settings') { 12 $vocabulary = taxonomy_vocabulary_load(variable_get('proyectos_operativos_extra_entidad', 0)); 13 if ($vocabulary) { 14 // list of terms. 15 $terms = array( 16 '0' => t('Ninguno'), 17 'geo_ve' => t('Entidades de Venezuela'), 18 ); 19 $form['ubicacion'] = array( 20 '#type' => 'fieldset', 21 '#title' => t('Terminos de Ubicación'), 22 ); 23 $form['ubicacion']['terminos'] = array( 24 '#type' => 'select', 25 '#title' => t('Terminos a Actualizar'), 26 '#options' => $terms, 27 '#description' => t('Seleccione la Lista de terminos a importar.'), 28 ); 29 $vocabularies = taxonomy_get_vocabularies(); 30 $availables_vocabulary = array(); 31 if (count($vocabularies)) { 32 foreach ($vocabularies as $vocabulary) { 33 $availables_vocabulary[$vocabulary->vid] = check_plain($vocabulary->name); 34 } 12 // list of terms. 13 $terms = array( 14 '0' => t('Ninguno'), 15 'geo_ve' => t('Entidades de Venezuela'), 16 ); 17 $form['ubicacion'] = array( 18 '#type' => 'fieldset', 19 '#title' => t('Terminos de Ubicación'), 20 ); 21 $form['ubicacion']['terminos'] = array( 22 '#type' => 'select', 23 '#title' => t('Terminos a Actualizar'), 24 '#options' => $terms, 25 '#description' => t('Seleccione la Lista de terminos a importar.'), 26 ); 27 $vocabularies = taxonomy_get_vocabularies(); 28 $availables_vocabulary = array(); 29 if (count($vocabularies)) { 30 foreach ($vocabularies as $vocabulary) { 31 $availables_vocabulary[$vocabulary->vid] = check_plain($vocabulary->name); 35 32 } 36 $vocabulary = taxonomy_vocabulary_load(variable_get('ente_ubicacion_vocabulary', 0));37 $availables_vocabulary[0] = t('Ninguno');38 ksort($availables_vocabulary);39 $form['ubicacion']['vocabulary'] = array(40 '#type' => 'select',41 '#title' => t('Vocabulario'),42 '#options' => $availables_vocabulary,43 '#description' => t('Seleccione el vocabulario en el que se han de importar los terminos.'),44 );45 $form['ubicacion']['submit'] = array(46 '#type' => 'submit',47 '#value' => t('Guardar Terminos'),48 '#submit' => array('ente_planificador_term_fields_import_form_submit'),49 );50 33 } 34 $vocabulary = taxonomy_vocabulary_load(variable_get('ente_ubicacion_vocabulary', 0)); 35 $availables_vocabulary[0] = t('Ninguno'); 36 ksort($availables_vocabulary); 37 $form['ubicacion']['vocabulary'] = array( 38 '#type' => 'select', 39 '#title' => t('Vocabulario'), 40 '#options' => $availables_vocabulary, 41 '#description' => t('Seleccione el vocabulario en el que se han de importar los terminos.'), 42 ); 43 $form['ubicacion']['submit'] = array( 44 '#type' => 'submit', 45 '#value' => t('Guardar Terminos'), 46 '#submit' => array('ente_planificador_term_fields_import_form_submit'), 47 ); 51 48 } 52 49 }
Nota: Vea TracChangeset
para ayuda en el uso del visor de conjuntos de cambios.