THE FOLLOWING IS A LIST OF CHANGES FROM THE PREVIOUS VERSION 6.x-1.x
I. The most important change is that now this module instead of creating a thousand variables, now uses an array keyed variable to save all the settings, this will reduce the intense use of the {variables} table.
II. All alters are made in a separated include file, the module will auto detect the file and the function. Follow this three steps to create a new alter functionality.
1. Define the key and a default value in nodeformsettings_elements_default() or commentformsettings_elements_default(). Starting with nfs_ (for nodeformsettings) or cfs_ (for commentformsettings). Example:
function commentformsettings_elements_default() {
return array(
'cfs_author' => 0,
'cfs_preview' => 0,
// more ...
'cfs_title' => 0,
);
}
In this case we define the key 'cfs_title' with a default value of 0 (Enabled).
This step is mandatory since it will be used by the hook_form_alter() implementation. If you don't define a key in the form of 'cfs_something' or 'nfs_something' the module will not recognize the alter.
2. Create a file in the includes directory in the form of _option_cfs_something.inc
Again, the _option_cfs_ or _option_nfs_ are mandatory. Take a look at the include directory in each module to see some examples.