array()); return $options; } function options_form(&$form, &$form_state) { $options = array(); foreach ($this->display->handler->get_handlers('field') as $field => $handler) { $options[$field] = $handler->ui_name(); } //provide input to set title field $form['title_field'] = array( '#type' => 'radios', '#title' => t('Title Field'), '#options' => $options, '#default_value' => $this->options['title_field'], '#description' => t('Which field to use as title?'), ); //provide input to set image field $form['image_field'] = array( '#type' => 'radios', '#title' => t('Image Field'), '#options' => $options, '#default_value' => $this->options['image_field'], '#description' => t('Which field to use for the Image?'), ); } }