'station_hour'); return $options; } function options_form(&$form, &$form_state) { parent::options_form($form, $form_state); $form['style'] = array( '#type' => 'radios', '#title' => t('Style'), '#options' => array( 'station_hour' => t('Hour'), 'station_dayhour' => t('Day/hour'), 'station_day' => t('Day'), ), '#default_value' => $this->options['style'], '#description' => t('Which time style should be used.'), ); } function render($values) { if (isset($values->{$this->field_alias})) { return theme($this->options['style'], $values->{$this->field_alias}); } } }