Skip to content
Snippets Groups Projects
Commit 8c6c337b authored by Eric Bremner's avatar Eric Bremner Committed by Kevin Paxman
Browse files

ISTWCMS-5880: coding standards

parent 13ee3027
No related branches found
No related tags found
3 merge requests!284Feature/istwcms 5880 ebremner banners above,!274Draft: ISTWCMS-5551: fixing office hours display,!260Feature/istwcms 5668 a5kulkar rename references to publications
...@@ -1009,11 +1009,6 @@ function uw_cfg_common_form_alter(array &$form, FormStateInterface $form_state, ...@@ -1009,11 +1009,6 @@ function uw_cfg_common_form_alter(array &$form, FormStateInterface $form_state,
// Add our custom validation for banners. // Add our custom validation for banners.
$form['#validate'][] = '_uw_cfg_common_banner_validate'; $form['#validate'][] = '_uw_cfg_common_banner_validate';
// Get the node object from the form state. Need to get
// it this way so that if we are on an add node, we can
// at least grab the basics of the node.
$node = $form_state->getFormObject()->getEntity();
} }
// If we are on the media upload form, we want to restrict // If we are on the media upload form, we want to restrict
......
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