Same name in other branches
  1. 8.x-2.x field_states_ui.module \field_states_ui_field_widget_settings_summary_alter()

Implements hook_field_widget_settings_summary_alter().

Fichier

./field_states_ui.module, line 23

Code

function field_states_ui_field_widget_settings_summary_alter(&$summary, $context) {
    $field_states = $context['widget']->getThirdPartySettings('field_states_ui');
    if (!empty($field_states['field_states'])) {
        $summary[] = t('Field States applied.');
    }
}