Skip to content
Snippets Groups Projects

Issue #3317536: Allow modules to perform actions on sync

1 file
+ 2
0
Compare changes
  • Side-by-side
  • Inline
@@ -550,6 +550,8 @@ function versioncontrol_gitlab_user_process($data) {
}
}
versioncontrol_gitlab_sync_emails($data['account']);
// Allow other modules to perform any additional sync operations.
module_invoke_all('versioncontrol_gitlab_user_process_sync', $gitlab_user['id']);
} catch (Exception $e) {
watchdog('versioncontrol_gitlab', 'Unable to sync GitLab user %user error: %msg', ['%user' => $data['account']->uid . ' - ' . $data['account']->git_username, '%msg' => $e->getMessage()], WATCHDOG_ERROR);
}
Loading