You are here

function oembed_field_formatter_settings_form in oEmbed 7.0

Same name and namespace in other branches
  1. 7 oembed.field.inc \oembed_field_formatter_settings_form()

Implements hook_field_formatter_settings_form().

File

./oembed.module, line 902

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;
}