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