You are here

function nodeformsettings_elements_default in Node and Comments Form Settings 6.3

Same name and namespace in other branches
  1. 6.2 nodeformsettings.module \nodeformsettings_elements_default()
  2. 7.3 nodeformsettings.module \nodeformsettings_elements_default()
  3. 7.2 nodeformsettings.module \nodeformsettings_elements_default()

Define the element and a default value

If you're making a patch define here the name of the element and the default value, try to keep the array sorted by alphabetical order for readability purposes

All keys MUST start with nfs_

1 => means Disabled (It Hides) 0 => means Enabled (It shows)

except when there are multiple options

4 calls to nodeformsettings_elements_default()
nodeformsettings_form_alter in ./nodeformsettings.module
Implementation of hook_form_alter()
nodeformsettings_purge in ./nodeformsettings.module
Remove all unsused variables
nodeformsettings_settings_submit in ./nodeformsettings.module
Submit callback for the node form alter
_nodeformsettings_settings_form in includes/settings_node.inc
Define all settings for nodes

File

./nodeformsettings.module, line 23
main file, only one hook_form_alter to change several settings

Code

function nodeformsettings_elements_default() {
  return array(
    'nfs_author_information' => 0,
    'nfs_cancel' => array(
      'nfs_cancel_status' => 1,
      'nfs_cancel_behaviour' => 0,
    ),
    'nfs_comments' => 0,
    'nfs_hide_node_title' => 0,
    'nfs_inputformat' => 0,
    'nfs_menu' => 0,
    'nfs_path' => 0,
    'nfs_preview' => 0,
    'nfs_publishingoptions' => 0,
    'nfs_revisionlog' => 0,
    'nfs_splitsummary' => 0,
    'nfs_submission_body_rows' => '20',
    'nfs_submit' => NULL,
    'nfs_taxonomy' => 0,
    'nfs_title_create' => NULL,
    'nfs_title_edit' => NULL,
    'nfs_title_description' => '',
    'nfs_body_description' => '',
  );
}