function thunder_field_widget_info_alter in Thunder 6.1.x
Same name and namespace in other branches
- 8.5 thunder.profile \thunder_field_widget_info_alter()
- 8.2 thunder.profile \thunder_field_widget_info_alter()
- 8.3 thunder.profile \thunder_field_widget_info_alter()
- 8.4 thunder.profile \thunder_field_widget_info_alter()
- 6.2.x thunder.profile \thunder_field_widget_info_alter()
- 6.0.x thunder.profile \thunder_field_widget_info_alter()
Implements hook_field_widget_info_alter().
File
- ./
thunder.profile, line 160 - Enables modules and site configuration for a thunder site installation.
Code
function thunder_field_widget_info_alter(array &$info) {
if (!\Drupal::moduleHandler()
->moduleExists('content_moderation')) {
unset($info['thunder_moderation_state_default']);
}
}