Conjunto dc71b2f en sipp
- Fecha y hora:
- 23/10/2015 15:14:02 (hace 9 años)
- Branches:
- 0.3-stable
- Children:
- de674a7
- Parents:
- a0b4327
- Ubicación:
- 0.3-stable-modules/acciones_centralizadas
- Ficheros:
-
- 2 editados
Leyenda
- No modificado
- Añadido
- Eliminado
-
0.3-stable-modules/acciones_centralizadas/acciones_centralizadas.admin.inc
ra0b4327 rdc71b2f 351 351 return system_settings_form($form); 352 352 } 353 /** 354 * Implementation of proyectos_operativos_admin_settings(). 355 * COnfigurar las acciones centralizadas 356 */ 357 function acciones_centralizadas_admin_workflow_color_settings() { 358 if (module_exists('workflow')) { 359 $wid = workflow_get_workflow_for_type('accion_centralizada'); 360 $colores = '#ffffff'; 361 if ($wid){ 362 $states = workflow_get_states($wid); 363 if (count($states)) { 364 $form['workflow'] = array( 365 '#type' => 'fieldset', 366 '#title' => t('Workflow Status Color'), 367 '#collapsible' => TRUE, 368 '#collapsed' => FALSE, 369 ); 370 foreach ($states as $sid => $state) { 371 $form['workflow']['acciones_centralizadas_state_color_' . $sid] = array( 372 '#type' => 'textfield', 373 '#title' => t('Color para el Estado: '. $state), 374 '#default_value' => variable_get('acciones_centralizadas_state_color_' . $sid, $colores), 375 '#size' => 25, 376 ); 377 } 378 } 379 } 380 } 381 return system_settings_form($form); 382 } -
0.3-stable-modules/acciones_centralizadas/acciones_centralizadas.module
ra0b4327 rdc71b2f 773 773 'file' => 'acciones_centralizadas.admin.inc', 774 774 ); 775 if (module_exists('workflow')) { 776 //configuracion proyectos operativos 777 $items['admin/settings/ente_planificador/acciones_centralizadas/worflow/color'] = array( 778 'title' => t('Workflow Status Color'), 779 'page callback' => 'drupal_get_form', 780 'page arguments' => array('acciones_centralizadas_admin_workflow_color_settings'), 781 'access arguments' => array('admin planificador'), 782 'weight' => -6, 783 'type' => MENU_LOCAL_TASK, 784 'file' => 'acciones_centralizadas.admin.inc', 785 ); 786 } 775 787 return $items; 776 788 }
Nota: Vea TracChangeset
para ayuda en el uso del visor de conjuntos de cambios.