We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Extension Hooking

Development and Programming

bmallett's avatar
bmallett
1 posts
15 years ago
bmallett's avatar bmallett

Ok, I know this is probably fairly simple, but I am having a touch of trouble. I am trying to create an extension that hooks into an existing extension freeform. I was thinking I would use the freeform_module_insert_end hook. ( see : http://www.solspace.com/software/detail/freeform/ ) What I want to do is catch the form submission of a freeform entry IF the name has been entered in the settings. (see attached image “extension_1.jpg”)

So…

If the user entered “test” in the settings, When the form was submit, the extension would scan the URL for a segment that matches the settings options. (In this case - “test”) If there was a match, the extension writes a cookie named “<some prefix>_test” with the value of “test” that expires in 360 days.

I hope this makes sense. I have tried writing it several different ways, but I am fairly new to EE and php.

I have a lang file and get the ext to run, install, show settings, and get populated in the DB, just not WORK!… lol

Thanks in advance,

Brian

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.