You are here

function svg_image_field_formatter_info in Svg Image 7

Implements hook_field_formatter_info().

File

includes/svg_image.field.inc, line 52
Contains hooks and functions related the field settings.

Code

function svg_image_field_formatter_info() {

  // Fetch the image formatter info from the core image type.
  $core_image_formatters = image_field_formatter_info();
  $image_field = $core_image_formatters['image'];

  // Add SVG Image related settings.
  $image_field['label'] = t('Image (SVG Support)');
  $image_field['settings']['svg_settings'] = array(
    'width' => '',
    'height' => '',
  );
  return array(
    'svg_image' => $image_field,
  );
}