function _length_indicator_widget_is_supported in Length Indicator 8
Determines if a form widget is supported.
Parameters
string $widget: The widget to check.
Return value
bool TRUE if the widget is supported, FALSE if not.
3 calls to _length_indicator_widget_is_supported()
- length_indicator_field_widget_form_alter in ./
length_indicator.module - Implements hook_field_widget_form_alter().
- length_indicator_field_widget_settings_summary_alter in ./
length_indicator.module - Implements hook_field_widget_settings_summary_alter().
- length_indicator_field_widget_third_party_settings_form in ./
length_indicator.module - Implements hook_field_widget_third_party_settings_form().
File
- ./
length_indicator.module, line 21 - Length Indicator module hooks.
Code
function _length_indicator_widget_is_supported($widget) {
return in_array($widget, [
'string_textfield',
'string_textarea',
], TRUE);
}