function bigint_field_formatter_settings_summary in Big Integer 7
Implements hook_field_formatter_settings_summary().
File
- ./
bigint.module, line 197 - Defines numeric field types.
Code
function bigint_field_formatter_settings_summary($field, $instance, $view_mode) {
$display = $instance['display'][$view_mode];
$settings = $display['settings'];
$summary = array();
if ($display['type'] == 'number_bigint') {
$summary[] = number_format(1234.123456789, $settings['scale'], $settings['decimal_separator'], $settings['thousand_separator']);
if ($settings['prefix_suffix']) {
$summary[] = t('Display with prefix and suffix.');
}
}
return implode('<br />', $summary);
}