rendered paste body<?php/** Implementation of views_row_plugin**/class hon_views_plugins_imageteaser extends views_plugin_row { function option_definition() { $options = parent::option_definition(); $options['sample1'] = array('default' => 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?'), ); } }