TRUE); return $options; } /** * Provide link to the page being visited. */ function options_form(&$form, &$form_state) { $form['display_as_link'] = array( '#title' => t('Display as link'), '#type' => 'checkbox', '#default_value' => !empty($this->options['display_as_link']), ); parent::options_form($form, $form_state); } function render($values) { $value = $this->get_value($values); if (!empty($this->options['display_as_link'])) { return l($this->sanitize_value($value), $value, array('html' => TRUE)); } else { return $this->sanitize_value($value, 'url'); } } }