You are here

function commerce_reports_field_formatter_info in Commerce Reporting 7.3

Same name and namespace in other branches
  1. 7.4 commerce_reports.module \commerce_reports_field_formatter_info()

Implements hook_field_formatter_info().

Defines a formatter view for the commerce_price field type that works for the commerce_reports_visualization handler.

File

./commerce_reports.module, line 155

Code

function commerce_reports_field_formatter_info() {
  return array(
    'commerce_reports_visualization' => array(
      'label' => t('Formatted amount for visualization'),
      'field types' => array(
        'commerce_price',
      ),
      'settings' => array(
        'calculation' => FALSE,
      ),
    ),
  );
}