Skip to content

Commit

Permalink
Merge pull request #402 from compucorp/PCHR-2112-onboarding-and-exiti…
Browse files Browse the repository at this point in the history
…ng-workflow

PCHR-2112: Onboarding And Exiting Workflow
  • Loading branch information
mickadoo authored Nov 23, 2017
2 parents 4d3f3fc + 8771fab commit 8ae805b
Show file tree
Hide file tree
Showing 50 changed files with 9,953 additions and 558 deletions.
2 changes: 2 additions & 0 deletions civihr_employee_portal/civihr_employee_portal.info
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ files[] = views/includes/civihr_employee_portal_argument_date_range.inc
files[] = views/includes/civihr_employee_portal_argument_contact_id.inc
files[] = views/includes/civihr_employee_portal_handler_email.inc
files[] = views/includes/civihr_employee_portal_handler_age_group.inc
files[] = views/includes/civihr_employee_portal_handler_aggregated_address.inc
files[] = views/includes/civihr_employee_portal_handler_emergency_contact_aggregated_address.inc
files[] = views/includes/civihr_employee_portal_argument_age_group.inc
files[] = views/includes/civihr_employee_portal_handler_absence_duration.inc
files[] = views/includes/civihr_employee_portal_handler_activity_type.inc
Expand Down
15 changes: 15 additions & 0 deletions civihr_employee_portal/civihr_employee_portal.install
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

use Drupal\civihr_employee_portal\Helpers\WebformHelper;

/**
* Create Report Pages and Report Age Settings menu links.
*/
Expand Down Expand Up @@ -223,6 +225,19 @@ function civihr_employee_portal_update_7010() {
}
}

/**
* Removes the "Emergency contact - edit" webform
*/
function civihr_employee_portal_update_7011() {
$node = WebformHelper::findOneByTitle('Emergency contact - edit');

if (!$node) {
return;
}

node_delete($node->nid);
}

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

0 comments on commit 8ae805b

Please sign in to comment.