Skip to content

Commit

Permalink
Merge pull request #536 from compucorp/PCHR-4072-update-help-link-to-…
Browse files Browse the repository at this point in the history
…lead-to-freshdesk-knowledge-base-home-page

PCHR-4072: Update help link to lead to freshdesk knowledge base
  • Loading branch information
ajesamson authored Aug 15, 2018
2 parents f3ad174 + 9fde6aa commit b3827bb
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 5 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
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/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(),
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/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
Expand Down

0 comments on commit b3827bb

Please sign in to comment.