function drupagram_views_handler_field_images::options_form in Drupagram 6
Same name and namespace in other branches
- 7 drupagram_views_field_handlers.inc \drupagram_views_handler_field_images::options_form()
File
- views/
drupagram_views_handler_field_images.inc, line 20 - Views handler for instagram images
Class
- drupagram_views_handler_field_images
- Field handler to provide simple renderer that turns a URL into a clickable link.
Code
function options_form(&$form, &$form_state) {
parent::options_form($form, $form_state);
$form['source'] = array(
'#title' => t('Image Source'),
'#type' => 'select',
'#options' => array(
'thumbnail' => t('Thumbnail'),
'standard_resolution' => t('Standard Resolution'),
'low_resolution' => t('Low Resolution'),
),
'#default_value' => $this->options['source'],
);
$form['link_to_post'] = array(
'#title' => t('Link to post'),
'#description' => t('If the link field is available, the image field will link to the Instagram post'),
'#type' => 'checkbox',
'#default_value' => !empty($this->options['link_to_post']),
);
}