diff --git a/civihr_employee_portal/civihr_employee_portal.install b/civihr_employee_portal/civihr_employee_portal.install index dce18f0d..a0dc9dde 100644 --- a/civihr_employee_portal/civihr_employee_portal.install +++ b/civihr_employee_portal/civihr_employee_portal.install @@ -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. * diff --git a/civihr_employee_portal/features/civihr_employee_portal_features/civihr_employee_portal_features.features.menu_links.inc b/civihr_employee_portal/features/civihr_employee_portal_features/civihr_employee_portal_features.features.menu_links.inc index 6d17f070..77d40252 100644 --- a/civihr_employee_portal/features/civihr_employee_portal_features/civihr_employee_portal_features.features.menu_links.inc +++ b/civihr_employee_portal/features/civihr_employee_portal_features/civihr_employee_portal_features.features.menu_links.inc @@ -86,14 +86,14 @@ function civihr_employee_portal_features_menu_default_menu_links() { 'weight' => 0, 'customized' => 1, ); - // Exported menu link: main-menu_help://civihr-documentation.readthedocs.io/en/latest/self-service-portal/login-screen/. - $menu_links['main-menu_help://civihr-documentation.readthedocs.io/en/latest/self-service-portal/login-screen/'] = array( + // Exported menu link: main-menu_help://userguide.civihr.org/. + $menu_links['main-menu_help://userguide.civihr.org/'] = array( 'menu_name' => 'main-menu', - 'link_path' => '//civihr-documentation.readthedocs.io/en/latest/self-service-portal/login-screen/', + 'link_path' => '//userguide.civihr.org/', 'router_path' => '', 'link_title' => 'Help', 'options' => array( - 'identifier' => 'main-menu_help://civihr-documentation.readthedocs.io/en/latest/self-service-portal/login-screen/', + 'identifier' => 'main-menu_help://userguide.civihr.org/', 'alter' => TRUE, 'roles_for_menu' => array( 'show' => array(), diff --git a/civihr_employee_portal/features/civihr_employee_portal_features/civihr_employee_portal_features.info b/civihr_employee_portal/features/civihr_employee_portal_features/civihr_employee_portal_features.info index e03aeafb..e1eab891 100644 --- a/civihr_employee_portal/features/civihr_employee_portal_features/civihr_employee_portal_features.info +++ b/civihr_employee_portal/features/civihr_employee_portal_features/civihr_employee_portal_features.info @@ -49,7 +49,7 @@ features[menu_custom][] = hr-reports-settings features[menu_links][] = hr-reports-settings_age-groups:reports/settings/age_group/ features[menu_links][] = hr-reports_leave-reports:reports/leave_and_absence/ features[menu_links][] = hr-reports_people-reports:reports/people/ -features[menu_links][] = main-menu_help://civihr-documentation.readthedocs.io/en/latest/self-service-portal/login-screen/ +features[menu_links][] = main-menu_help://userguide.civihr.org/ features[menu_links][] = main-menu_home:dashboard features[menu_links][] = main-menu_hr-admin:civicrm features[menu_links][] = main-menu_hr-resources:hr-resources