Node and Comments Form Settings

This project is not covered by Drupal’s security advisory policy.

I often find myself doing the same hook_form_alter just to do the same things over and over again. It's just a waste of time. This module lets you change several 'small' behaviors with hook_form_alter, in both nodes and comments, doing it per content type so you can configure different aspects of your nodes/comments.

Currently you can do the following changes for nodes 7.x version:

  • Hide the Input Format fieldset for node body field
  • Option to remove revision log field. Thanks to @jjeff
  • Show/hide author information fieldset
  • Show/hide path fieldset
  • Show/hide comments fieldset
  • Show/hide path fieldset
  • Show a 'Cancel' link on node edit form. Ported from http://drupal.org/node/116939
  • Change the default value of the Submit button
  • Hide the node title, useful when you're showing the node title on the breadcrumb or if you want to hide it for any other reason. The title needs to be set, if you want to auto generate it, use Automatic Nodetitles since this will not hide the title on the form, just when viewing the node.
  • Change title on node create page
  • Change title on node edit page
  • Change title on node delete page
  • Change description on node delete page
  • Show/hide Sitemap inclusion field
  • Set default vertical tab as open
  • Show/hide publishing options - fieldset, promote and sticky options
  • Apply above changes to all content types in a single button click

For the comments you can change the following on 7.x version:

  • Hide the author of the comment on the comment form
  • Allow to override the author of a comment
  • Hide the word "Comment" on the comments form
  • Enable or disable the Input Format fieldset on comments form
  • Submit button title
  • Option to disable the Name, Email and Homepage on Anonymous Comments
  • Add cancel link in comments form
  • Apply above changes to all content types in a single button click

The easiest example I can realize of what this module does, is when you add a new comment, the submit button will say something like "Send", with this module you can easily change it to something more appropriate like "Publish comment".

If you find yourself doing some hook_form_alter just to change small behaviors of Drupal and you wish to stop doing it, please open an issue and propose a new hook_form_alter, just remember it has to be for something Drupal does, not a module. This is just a time saver module.

VERSION 6.x IS NO LONGER SUPPORTED - Only patches will be ported directly

I need you to help test the latest 7.x branch. If you find any bugs please create an issue.

Project information

Releases