You are here

function tweetbutton_field_formatter_settings_form in Tweet Button 7.2

Implements hook_field_formatter_settings_form().

File

./tweetbutton.module, line 168

Code

function tweetbutton_field_formatter_settings_form($field, $instance, $view_mode, $form, &$form_state) {
  $display = $instance['display'][$view_mode];
  $settings = $display['settings'];
  $element['size'] = array(
    '#type' => 'select',
    '#title' => t('Tweetbutton size'),
    '#options' => array(
      'medium' => t('Medium'),
      'large' => t('Large'),
    ),
    '#default_value' => $settings['size'],
  );
  return $element;
}