Skip to content

Commit

Permalink
Update signature for searchKitTasks hook for civiimport
Browse files Browse the repository at this point in the history
  • Loading branch information
mattwire committed Feb 17, 2023
1 parent 07c232e commit c13ab6b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ext/civiimport/civiimport.php
Original file line number Diff line number Diff line change
Expand Up @@ -208,11 +208,13 @@ function civiimport_civicrm_alterTemplateFile($formName, $form, $type, &$templat
*
* @param array $tasks
* @param bool $checkPermissions
* @param int|null $userId
* @param int|null $userID
* @param array|null $search
* @param array|null $display
*
* @noinspection PhpUnused
*/
function civiimport_civicrm_searchKitTasks(array &$tasks, bool $checkPermissions, ?int $userId) {
function civiimport_civicrm_searchKitTasks(array &$tasks, bool $checkPermissions, ?int $userID, ?array $search = [], ?array $display = []) {
foreach (Import::getImportTables() as $import) {
$tasks['Import_' . $import['user_job_id']]['validate'] = [
'title' => E::ts('Validate'),
Expand Down

0 comments on commit c13ab6b

Please sign in to comment.