function commentformsettings_elements_default in Node and Comments Form Settings 7.3
Same name and namespace in other branches
- 6.3 commentformsettings/commentformsettings.module \commentformsettings_elements_default()
- 6.2 commentformsettings/commentformsettings.module \commentformsettings_elements_default()
- 7.2 commentformsettings/commentformsettings.module \commentformsettings_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.
1 => usually means Disabled 0 => usually means Enabled
5 calls to commentformsettings_elements_default()
- commentformsettings_form_alter in commentformsettings/
commentformsettings.module - Implements hook_form_alter().
- commentformsettings_purge in commentformsettings/
commentformsettings.module - @todo Please document this function.
- commentformsettings_reset_default in commentformsettings/
commentformsettings.module - Function to handle submit for resetting to default values.
- commentformsettings_settings_submit in commentformsettings/
commentformsettings.module - Submit callback for the node form alter.
- _commentformsettings_settings_form in commentformsettings/
includes/ settings_comments.inc - @file
File
- commentformsettings/
commentformsettings.module, line 36
Code
function commentformsettings_elements_default() {
return array(
'cfs_anonymousname' => 0,
'cfs_anonymousmail' => 0,
'cfs_anonymoushomepage' => 0,
'cfs_author' => 0,
'cfs_comment_cancel' => 1,
'cfs_inputformat' => 0,
'cfs_newadmin' => 1,
'cfs_submit' => t('Submit'),
'cfs_title' => 0,
);
}