Commit 038b56f7 authored by SebBd's avatar SebBd
Browse files

remove hook_field_formatter_settings_form

parent a67b2d5c
Loading
Loading
Loading
Loading
+0 −24
Original line number Diff line number Diff line
@@ -18,31 +18,7 @@ function views_rss_scald_image_field_formatter_info() {
  return $formatters;
}

/**
 * Implements hook_field_formatter_settings_form().
 */
// This hook have to be done for resizing support
/*
function views_rss_scald_image_field_formatter_settings_form($field, $instance, $view_mode, $form, &$form_state) {
  $display = $instance['display'][$view_mode];
  $settings = $display['settings'];
  $element = NULL;
  //next line commented for the moment. Useful if you want a resize the atom_reference image
  //if ($field['type'] == 'image'||'atom_reference' ) {
  if ($field['type'] == 'atom_reference' ) {
    $image_styles = image_style_options(FALSE);
    $element['image_style'] = array(
      '#title' => t('Image style'),
      '#type' => 'select',
      '#default_value' => $settings['image_style'],
      '#empty_option' => t('None (original image)'),
      '#options' => $image_styles,
    );
  }

  return $element;
}
*/
/**
 * Implements hook_field_formatter_view().
 *