Frage

I have a drupal app and I want to have a field as checkbox, so, when I create/edit a content type, it appears like the title and the description, and if I check it, all of the nodes with that type will have that field checked. Some ideas? Thank you in advance

War es hilfreich?

Lösung

Please go to the form where you want to add the field.

View source, you will get form_id there.

Get the form_id to use in one of the following form alter hooks.

Alter the form using hook_form_alter or hook_form_FORM_ID_alter

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top