You are here

function panopoly_demo_menu_link_alter in Panopoly Demo 7

Implements hook_link_alter().

This is a clever workaround for some notice errors that we introduced in Panopoly Admin RC3. This function can be removed with the next version of Panopoly. More information is here - http://drupal.org/node/1838084

File

./panopoly_demo.module, line 32

Code

function panopoly_demo_menu_link_alter(&$item) {
  if (empty($item['path'])) {
    $item['path'] = $item['link_path'];
  }
}