menu_link_content_path_update

menu_link_content_path_update($path)

Implements hook_path_update().

File

core/modules/menu_link_content/menu_link_content.module, line 68
Allows administrators to create custom menu links.

Code

function menu_link_content_path_update($path) {
  if ($path['alias'] != $path['original']['alias']) {
    _menu_link_content_update_path_alias($path['alias']);
    _menu_link_content_update_path_alias($path['original']['alias']);
  }
  elseif ($path['source'] != $path['original']['source']) {
    _menu_link_content_update_path_alias($path['alias']);
  }
}
doc_Drupal
2016-10-29 09:27:48
Comments
Leave a Comment

Please login to continue.