function length_indicator_field_widget_settings_summary_alter in Length Indicator 8
Implements hook_field_widget_settings_summary_alter().
File
- ./
length_indicator.module, line 135 - Length Indicator module hooks.
Code
function length_indicator_field_widget_settings_summary_alter(&$summary, $context) {
if (_length_indicator_widget_is_supported($context['widget']
->getPluginId())) {
$indicator = $context['widget']
->getThirdPartySetting('length_indicator', 'indicator');
$indicator_string = $indicator ? 'On' : 'Off';
$summary[] = 'Length indicator: ' . $indicator_string;
}
}