FALSE, 'bool' => TRUE); return $options; } public function construct() { parent::construct(); $this->additional_fields['nid'] = 'nid'; } public function buildOptionsForm(&$form, &$form_state) { parent::buildOptionsForm($form, $form_state); $form['absolute'] = array( '#type' => 'checkbox', '#title' => t('Use absolute link (begins with "http://")'), '#default_value' => $this->options['absolute'], '#description' => t('Enable this option to output an absolute link. Required if you want to use the path as a link destination (as in "output this field as a link" above).'), '#fieldset' => 'alter', ); } public function query() { $this->ensureMyTable(); $this->add_additional_fields(); } function render($values) { $nid = $this->get_value($values, 'nid'); return url("node/$nid", array('absolute' => $this->options['absolute'])); } }