function _option_nfs_comments in Node and Comments Form Settings 6.3
Same name and namespace in other branches
- 6.2 includes/option_nfs_comments.inc \_option_nfs_comments()
- 7.3 includes/option_nfs_comments.inc \_option_nfs_comments()
- 7.2 includes/option_nfs_comments.inc \_option_nfs_comments()
Change the value for the submit button
There's no if here
File
- includes/
option_nfs_comments.inc, line 8
Code
function _option_nfs_comments(&$form, &$form_state, $settings, $node) {
if ($settings['nfs_comments'] == 1) {
$form['comment_settings']['#access'] = FALSE;
}
return $form;
}