You are here

function menu_link_menu_link_alter in Menu Link (Field) 7

Implements hook_menu_link_alter().

Add $prior_link to hook_menu_link_update().

See also

http://drupal.org/node/1087888

1 call to menu_link_menu_link_alter()
menu_link_menu_link_update in ./menu_link.module
Implements hook_menu_link_update().

File

./menu_link.module, line 185

Code

function menu_link_menu_link_alter($item = NULL) {
  static $existing_item;
  if (isset($item)) {
    $existing_item = FALSE;
    if (isset($item['mlid'])) {
      if ($existing_item = db_query("SELECT * FROM {menu_links} WHERE mlid = :mlid", array(
        ':mlid' => $item['mlid'],
      ))
        ->fetchAssoc()) {
        $existing_item['options'] = unserialize($existing_item['options']);
      }
    }
    if ($existing_item['module'] == 'menu_link') {
    }
  }
  return $existing_item;
}