additional_fields['nid'] = 'nid'; } function options_form(&$form, &$form_state) { parent::options_form($form, $form_state); $form['text'] = array( '#type' => 'textfield', '#title' => t('Text separator'), '#default_value' => $this->options['text'], ); } function query() { $this->ensure_my_table(); $this->add_additional_fields(); } function render($values) { $nid = $values->{$this->aliases['nid']}; $childrens = _ente_planificador_hierarchical_get_desc($nid, 0); $output = ''; if (count($childrens)) { $text = !empty($this->options['text']) ? $this->options['text'] : '>'; $output = ''; $sep = ''; foreach($childrens as $level => $ente) { $output .= $sep . l($ente['title'], 'node/'. $ente['nid']); if ($sep == '') { $sep = ' ' . $text . ' '; } } return $output; } return; } }