Skip to content

Commit

Permalink
PCHR-4072: Upgrader to remove the old menu link
Browse files Browse the repository at this point in the history
  • Loading branch information
ajesamson committed Aug 15, 2018
1 parent 0d013d6 commit 9fde6aa
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions civihr_employee_portal/civihr_employee_portal.install
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,18 @@ function civihr_employee_portal_update_7035() {
drush_civihr_employee_portal_refresh_node_export_files();
}

/**
* Removes old 'Help' menu link from main menu
*/
function civihr_employee_portal_update_7036() {
db_delete('menu_links')
->condition('link_title', 'help')
->condition('menu_name', 'main-menu')
->execute();

cache_clear_all();
}

/**
* Function to determine whether menu link exists or not.
*
Expand Down

0 comments on commit 9fde6aa

Please sign in to comment.