function _field_formatter_filter_target_field_type in Field Formatter Filter 2.0.x
Same name and namespace in other branches
- 8 field_formatter_filter.module \_field_formatter_filter_target_field_type()
Returns true if the field type is filterable.
Internal utility.
Parameters
string $type: Field type.
Return value
bool Is this a filterable field type.
2 calls to _field_formatter_filter_target_field_type()
- field_formatter_filter_field_formatter_third_party_settings_form in ./
field_formatter_filter.module - Adds a 'filter' selection to all text formatters.
- field_formatter_filter_preprocess_field in ./
field_formatter_filter.module - Applies an additional filter on the text field being rendered.
File
- ./
field_formatter_filter.module, line 158 - Allows different text format filters to be applied to text fields.
Code
function _field_formatter_filter_target_field_type($type) {
// Only alter longtext sorta fields.
return in_array($type, [
'text',
'text_long',
'text_with_summary',
]);
}