CMS: Drupal 8.9.13
Webform module version: 8.x-5.17

Implementing webform submission insert hook on drupal 8 site, need help with function definition, i think i have problem with function parameters maybe?

here is what is have (per hook definition):

function cea_civicrm_webform_submission_insert($node, $submission) {

I am seeing error upon webform submission:

ArgumentCountError: Too few arguments to function cea_civicrm_webform_submission_insert(), 1 passed and exactly 2 expected in cea_civicrm_webform_submission_insert() (line 159 of /code/web/modules/custom/cea_civicrm/cea_civicrm.module)

Comments

hassan.farooq121 created an issue. See original summary.

hassan.farooq121’s picture

Issue summary: View changes
jrockowitz’s picture

The Webform module's issue queue is for bugs, feature requests, and planning. Please post general support questions to Drupal Answers. You can also ask questions or help answer questions on the #webform channel on Drupal Slack.

You are referencing a D7/Webform 4.x hook which is no longer supported. You will have to research and use a different hook.

jrockowitz’s picture

Status: Active » Closed (won't fix)