function shs_field_formatter_settings_summary in Simple hierarchical select 7
Implements hook_field_formatter_settings_summary().
File
- ./
shs.module, line 732 - Provides an additional widget for term fields to create hierarchical selects.
Code
function shs_field_formatter_settings_summary($field, $instance, $view_mode) {
$display = $instance['display'][$view_mode];
$settings = $display['settings'];
$summary = '';
if ($display['type'] == 'shs_default') {
$summary = t('Linked to term page: !linked', array(
'!linked' => $settings['linked'] ? t('Yes') : t('No'),
));
}
return $summary;
}