Skip to content
Snippets Groups Projects
Commit b7254bc8 authored by Tim Diels's avatar Tim Diels
Browse files

Issue #3341952 by tim-diels: Use substr to search for menu_link_content_

parent 80321297
Branches
Tags 1.0.3
No related merge requests found
......@@ -26,7 +26,7 @@ function simple_terms_and_menus_module_implements_alter(&$implementations, $hook
function simple_terms_and_menus_form_alter(&$form, FormStateInterface $form_state, $form_id) {
// Clean up menu form.
if ($form_id == 'menu_link_content_menu_link_content_form') {
if (substr($form_id, 0, 18) == 'menu_link_content_') {
$hasPermission = \Drupal::currentUser()
->hasPermission('use advanced menu options');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment