additional_fields['nid'] = 'nid'; } function query() { $this->ensure_my_table(); $this->add_additional_fields(); } function render($values) { global $user; static $fecha; if (!isset($fecha)) { $current_time = time(); $tipo_plan = 'proyectos_operativos_formular'; $fecha = FALSE; $ente = usuario_tiene_ente($user->uid); $ente_planificador = 0; if ($ente && $ente->nid) { $ente_planificador = ente_planificador_leer_ente_planificadores($ente->nid); } $mi_fecha = ente_planificador_user_acceso_proceso($tipo_plan, $ente_planificador); if ($mi_fecha[1] + 86399 > $current_time && $mi_fecha[0] < $current_time) { $fecha = TRUE; } } $nid = $values->{$this->aliases['nid']}; $node_load = node_load($nid); if ($node_load && $node_load->type == 'proyectos_operativos') { $links = array(); drupal_alter('proyecto_obtiene_links', $links, $node_load, $fecha); return theme('item_list', $links); } return; } }