create new content type without Revision information

johnhelen - October 4, 2009 - 04:23

Hi

I want to create a new Content Type without "Revision Information" and "Comment settings" fields. However, I cannot remove them as these fields were dimmed.

Could you please tell me how?
Many thanks
john

_

WorldFallz - October 4, 2009 - 12:30

You can turn off comment controls in the content type edit form in the comment settings fieldset. To disable revision information for a single content type you'll probably have to hook_form_alter it out.

_
Don't be a Help Vampire - read and abide the forum guidelines.
If you find my assistance useful, please pay it forward to your fellow drupalers.

Thanks That means I have to

johnhelen - October 7, 2009 - 11:11

Thanks

That means I have to create a module with a form and then use hook_form_alter in this module?.
If that how I can add Fields such as Location field (CCK) in to this form automatically?

(By using "Add new Content Type" I can add "Location" field to a Form easily through "Manager Field"

Could you please help
Thanks again

That means I have to create a

WorldFallz - October 7, 2009 - 13:56

That means I have to create a module with a form and then use hook_form_alter in this module?.

If that how I can add Fields such as Location field (CCK) in to this form automatically?

I'm not sure what you mean by 'automatically' but you would add fields to this content type same as any other-- via the 'manage fields' tab on the content type edit form.

_
Don't be a Help Vampire - read and abide the forum guidelines.
If you find my assistance useful, please pay it forward to your fellow drupalers.

 
 

Drupal is a registered trademark of Dries Buytaert.