function oembed_field_formatter_settings_form in oEmbed 7
Same name and namespace in other branches
- 7.0 oembed.module \oembed_field_formatter_settings_form()
Implements hook_field_formatter_settings_form().
File
- ./
oembed.field.inc, line 27 - Field module functionality for the oEmbed module.
Code
function oembed_field_formatter_settings_form($field, $instance, $view_mode, $form, &$form_state) {
$display = $instance['display'][$view_mode];
$settings = $display['settings'];
$element = array();
$element['maxwidth'] = array(
'#title' => t('Maximum Width'),
'#type' => 'textfield',
'#default_value' => $settings['maxwidth'],
);
$element['maxheight'] = array(
'#title' => t('Maximum Height'),
'#type' => 'textfield',
'#default_value' => $settings['maxheight'],
);
return $element;
}