I'm using the contrib module contact block and I would like to edit the block form settings. By default, there is a textfield (title) and the "Display title" checkbox, I need to hide those fields by use of some hook(s) but I don't know which one should I use, already tested:
- hook_form_alter()
- hook_field_widget_WIDGET_TYPE_form_alter()
How could I hide them (without css)? Thanks all.
hook_form_alter
?