I am trying to tie webforms to this API and submit webform entries to Marketo. Does anyone know of any code examples that exists? I tried adding the data in hook_form_submit(), but am failing.

Comments

Anonymous’s picture

This is a marketo_munchkin.example file included with both the D6 and D7 versions of the module which has examples of how to implement the hooks as well as tie your forms into the API. I will create some better documentation.

robomalo’s picture

Thanks for responding. I guess what I was looking for was people have tied MYMODULE_marketo_create_data() to hook_form_submit() (if that is the correct way of doing it). I think I am going to add everything from $form_state['values']['submitted'] to MYMODULE_marketo_create_data() (using my module name of course).

What are all the "TYPES" in hook_marketo_create_TYPE_data()?

robomalo’s picture

Sorry to bombard you...

"There are several hooks developers can use to modify Lead data prior to submission..."

Do the hooks provided only work prior to submission? All the info I need would come from the form itself so it would be post submission.

I read the module code. NM.

Anonymous’s picture

Status: Active » Fixed

I have added more documentation.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.