Loading gin_gutenberg.module +9 −0 Original line number Diff line number Diff line Loading @@ -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']); } } /** Loading Loading
gin_gutenberg.module +9 −0 Original line number Diff line number Diff line Loading @@ -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']); } } /** Loading