Skip to content
Snippets Groups Projects
Commit c66d2715 authored by Jesus Manuel Olivas's avatar Jesus Manuel Olivas
Browse files

:sparkles: Issue #3464748: Published field is no longer on the form

parent 782ce84d
No related branches found
No related tags found
1 merge request!23✨ Issue #3464748: Published field is no longer on the form
Pipeline #238638 passed with warnings
......@@ -30,6 +30,11 @@ class NodeEditForm extends NodeForm {
// Build the form.
$form = parent::buildForm($form, $form_state);
// Add status aka published field to meta fieldset.
$form['meta']['status'] = $form['status'];
$form['meta']['status']['#group'] = NULL;
$form['meta']['status']['#weight'] = 0;
// Hide Preview button.
$form['actions']['preview']['#access'] = $this->isLatestRevision();
// Hide Delete button.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment