You are here

function content_menu_mark_link_updated in Content Menu 7

Same name and namespace in other branches
  1. 8 content_menu.module \content_menu_mark_link_updated()

Mark newly created menu items, to highlight them subsequently.

Parameters

$link Array defining the link.:

2 calls to content_menu_mark_link_updated()
content_menu_menu_link_insert in ./content_menu.module
Implements hook_menu_link_insert().
content_menu_menu_link_update in ./content_menu.module
Implements hook_menu_link_update().

File

./content_menu.module, line 203
Main code for the content_menu.module.

Code

function content_menu_mark_link_updated($link) {

  // Save menu links created on or right before menu admin pages to session var.
  if (isset($_GET['destination']) && strpos($_GET['destination'], 'admin/structure/menu/manage/') === 0 || strpos(current_path(), 'admin/structure/menu/manage/') === 0) {
    $link['created'] = time();
    $_SESSION['content_menu_inserted_links'][$link['mlid']] = $link;
  }
}