Question

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

Était-ce utile?

La solution

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

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top