Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

PCHR-4072: Update help link to lead to freshdesk knowledge base #536

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number Diff line number Diff line change
Expand Up @@ -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/#-screen/.
$menu_links['main-menu_help://civihr-documentation.readthedocs.io/en/latest/self-service-portal/#-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/#-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/#-screen/',
'identifier' => 'main-menu_help://userguide.civihr.org/',
'alter' => TRUE,
'roles_for_menu' => array(
'show' => array(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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/#-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
Expand Down