How can I remove the "edit" link on this page on the manage menu page (Structure > Menus > My menu > List links)?

1 Answer 1


hook_form_alter() can take care of this by setting #access element on menu item operation links.

function MYMODULE_form_menu_overview_form_alter(&$form, $form_state, $form_id) {
  foreach($form as $key => $value) {
    if(strpos($key, 'mlid:') !== FALSE) {
      $form[$key]['operations']['edit']['#access'] = FALSE;

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.