Commit 18a36075 authored by pavel.karoukin's avatar pavel.karoukin Committed by Nik Alexandrov
Browse files

Issue #2422507 by pavel.karoukin: [PATCH] When not showing expire field,...

Issue #2422507 by pavel.karoukin: [PATCH] When not showing expire field, fieldset still gets created
parent f285547c
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -295,8 +295,13 @@ function _node_expire_form_alter_nodeform(&$ntype, &$form, &$form_state, $form_i
    );
  }

  // If we use hidden value, do not create fieldset
  if ($expire_field['#type'] == 'value') {
      $form['options1'] = array();
      $form['options1']['expire'] = &$expire_field;
  }
  // If the form doesn't have the publishing options we'll create our own.
  if (!$form['options']['#access']) {
  else if (!$form['options']['#access']) {
    $form['options1'] = array(
      '#type' => 'fieldset',
      '#title' => t('Publishing options'),