function addressfield_field_formatter_settings_summary in Address Field 7
Implements hook_field_formatter_settings_summary().
File
- ./
addressfield.module, line 779 - Defines a field for attaching country-specific addresses to entities.
Code
function addressfield_field_formatter_settings_summary($field, $instance, $view_mode) {
$display = $instance['display'][$view_mode];
$settings = $display['settings'];
if ($settings['use_widget_handlers']) {
return t('Use widget configuration');
}
else {
$summary = array();
$plugins = addressfield_format_plugins();
foreach ($settings['format_handlers'] as $handler) {
$summary[] = $plugins[$handler]['title'];
}
return $summary ? implode(', ', $summary) : t('No handler');
}
}