function shortcut_menu_link_load

Implements hook_TYPE_load().

File

drupal/core/modules/shortcut/shortcut.module, line 55
Allows users to manage customizable lists of shortcut links.

Code

function shortcut_menu_link_load($entities) {
  foreach ($entities as $entity) {

    // Change the bundle of menu links related to a shortcut.
    if (strpos($entity->menu_name, 'shortcut-') === 0) {
      $entity->bundle = 'shortcut';
    }
  }
}