You are here

function _option_nfs_publishingoptions in Node and Comments Form Settings 7.2

Same name and namespace in other branches
  1. 6.3 includes/option_nfs_publishingoptions.inc \_option_nfs_publishingoptions()
  2. 6.2 includes/option_nfs_publishingoptions.inc \_option_nfs_publishingoptions()
  3. 7.3 includes/option_nfs_publishingoptions.inc \_option_nfs_publishingoptions()

Change the value for the submit button.

There's no if here.

File

includes/option_nfs_publishingoptions.inc, line 8

Code

function _option_nfs_publishingoptions(&$form, &$form_state, $settings, $node) {
  if ($settings['nfs_publishingoptions'] == 1) {
    $form['options']['#access'] = FALSE;
  }
  return $form;
}