Commit f4488e23 authored by Marco Fernandes's avatar Marco Fernandes Committed by Sohail Lajevardi
Browse files

Issue #3279747 by marcofernandes, doxigo: Status/Published check box is hidden

parent 9fef64b7
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -98,6 +98,15 @@ function gin_gutenberg_form_node_form_alter(&$form, FormStateInterface $form_sta

  $form['metabox_fields']['#open'] = TRUE;
  $form['#attached']['library'][] = 'gin_gutenberg/gin_gutenberg';

  // @todo There's a better way to change status element group?
  //       It seems Gin alter always overrides the group change.
  if (isset($form['status'])) {
    unset($form['status']['#group']);
    $form['meta']['status'] = $form['status'];
    $form['meta']['status']['#weight'] = 1;
    unset($form['status']);
  }
}

/**