Skip to content
Snippets Groups Projects
Commit 91fb35ef authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2300313 by blueminds: Fixed Seven theme competely overrides the...

Issue #2300313 by blueminds: Fixed Seven theme competely overrides the $form['#attached'] on node form.
parent ad3e9369
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -273,9 +273,7 @@ function seven_form_node_form_alter(&$form, &$form_state) {
$node = $form_state['controller']->getEntity();
$form['#theme'] = array('node_edit_form');
$form['#attached'] = array(
'css' => array(drupal_get_path('module', 'node') . '/css/node.module.css'),
);
$form['#attached']['css'][] = drupal_get_path('module', 'node') . '/css/node.module.css';
$form['advanced']['#type'] = 'container';
$is_new = !$node->isNew() ? format_date($node->getChangedTime(), 'short') : t('Not saved yet');
......
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