function shariff_field_formatter_settings_summary in Shariff Social Media Buttons 7
Implements hook_field_formatter_settings_summary().
File
- ./
shariff.module, line 492 - Integrating Shariff library, providing settings form and block.
Code
function shariff_field_formatter_settings_summary($field, $instance, $view_mode) {
$display = $instance['display'][$view_mode];
$settings = $display['settings'];
$settings['hide_by_default'] ? $display = t('Yes') : ($display = t('No'));
$summary = t('Hide buttons by default for existing entities: @hide_by_default', array(
'@hide_by_default' => $display,
));
return $summary;
}