You are here

function basic_cart_field_formatter_settings_summary in Basic cart 7.3

Implements hook_field_formatter_settings_summary().

File

./basic_cart.module, line 279

Code

function basic_cart_field_formatter_settings_summary($field, $instance, $view_mode) {
  $display = $instance['display'][$view_mode];
  $settings = $display['settings'];
  $summary = '';
  switch ($display['type']) {
    case 'basic_cart_add_to_cart':
      $summary = t('Classes for add to cart button: "@css_class"', array(
        '@css_class' => $settings['css_class'],
      ));
      break;
  }
  return $summary;
}