You are here

function menu_link_modal_preprocess_menu in Menu Link Modal 8

Same name and namespace in other branches
  1. 8.2 menu_link_modal.module \menu_link_modal_preprocess_menu()

Implements hook_preprocess_menu().

File

./menu_link_modal.module, line 89
Main file of Menu Link Modal module.

Code

function menu_link_modal_preprocess_menu(&$variables) {
  $modal_link = FALSE;
  menu_link_modal_set_attributes($variables['items'], $modal_link);
  if ($modal_link) {
    $variables['#attached']['library'][] = 'core/drupal.dialog.ajax';
  }
}