function multifield_table_field_formatter_settings_summary in Multifield table 7
Implements hook_field_formatter_settings_summary().
File
- ./
multifield_table.module, line 52 - Provides a table formatter and widget for multifield field types.
Code
function multifield_table_field_formatter_settings_summary($field, $instance, $view_mode) {
$summary = multifield_field_formatter_settings_summary($field, $instance, $view_mode);
$display = $instance['display'][$view_mode];
$settings = $display['settings'];
$settings += array(
'header_type' => 'sticky',
);
switch ($settings['header_type']) {
case 'sticky':
$summary .= "<br />" . t('Use sticky header');
break;
case 'normal':
$summary .= "<br />" . t('Use normal header (not sticky)');
break;
case 'none':
$summary .= "<br />" . t('Do not use a table header');
break;
}
return $summary;
}