Skip to content

Commit

Permalink
Merge pull request #556 from compucorp/PCHR-3930-fix-upgrader-number
Browse files Browse the repository at this point in the history
PCHR-3930: Fix upgrader numbers
  • Loading branch information
davialexandre authored Sep 18, 2018
2 parents 5565d23 + bbe0e7f commit a41a763
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions civihr_employee_portal/civihr_employee_portal.install
Original file line number Diff line number Diff line change
Expand Up @@ -454,18 +454,10 @@ function civihr_employee_portal_update_7035() {
drush_civihr_employee_portal_refresh_node_export_files();
}

/**
* Disables the HR Vacancies View
*/
function civihr_employee_portal_update_7036() {
$status = variable_get('views_defaults', []);
$status['hr-vacancies'] = TRUE;
variable_set('views_defaults', $status);
}
/**
* Removes old 'Help' menu link from main menu
*/
function civihr_employee_portal_update_7037() {
function civihr_employee_portal_update_7036() {
db_delete('menu_links')
->condition('link_title', 'help')
->condition('menu_name', 'main-menu')
Expand All @@ -481,6 +473,15 @@ function civihr_employee_portal_update_7037() {
features_revert(['civihr_default_permissions' => ['user_permission']]);
}

/**
* Disables the HR Vacancies View
*/
function civihr_employee_portal_update_7038() {
$status = variable_get('views_defaults', []);
$status['hr-vacancies'] = TRUE;
variable_set('views_defaults', $status);
}

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

0 comments on commit a41a763

Please # to comment.