Juanjo
Juanjo

Reputation: 969

Add field to screen "New content type" in drupal

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

Upvotes: 0

Views: 38

Answers (1)

Pupil
Pupil

Reputation: 23958

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

Upvotes: 1

Related Questions