Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit 4a3799a6 authored by drishu's avatar drishu
Browse files

OEL-1650: Remove event registration field preprocess.

parent efbe0793
No related branches found
No related tags found
1 merge request!172OEL-1650: Move Event registration url to links.
......@@ -123,16 +123,4 @@ function _oe_whitelabel_starter_event_preprocess_inpage_nav(array &$variables):
'label' => $node->{$item['#field_name']}->getFieldDefinition()->getLabel(),
];
}
}
/**
* Implements hook_preprocess_HOOK().
*/
function oe_whitelabel_starter_event_preprocess_field__node__oe_sc_event_registration_url(&$variables) {
foreach ($variables['items'] as &$item) {
if ($item['content']['#url']->isExternal()) {
$item['content']['attributes']['target'] = '_blank';
}
}
}
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