function twitter_views_handler_field_image::options_form in Twitter 7.5
Creates the form item for the options added.
Overrides views_handler_field::options_form
File
- ./
twitter_views_field_handlers.inc, line 216 - Views handlers for Twitter module.
Class
- twitter_views_handler_field_image
- Renders the image attached to a tweet.
Code
function options_form(&$form, &$form_state) {
parent::options_form($form, $form_state);
$form['size'] = array(
'#type' => 'select',
'#title' => t('Image size'),
'#default_value' => $this->options['size'],
'#options' => array(
'thumb' => t('Thumb'),
'small' => t('Small'),
'medium' => t('Medium'),
'large' => t('Large'),
),
'#description' => t('Choose an image size from the ones that Twitter has created for this image.'),
'#weight' => -10,
);
}