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

Which hook do I need?

Development and Programming

Ace Prod's avatar
Ace Prod
111 posts
15 years ago
Ace Prod's avatar Ace Prod

I’m trying to write an extension to modify the comments form so I can add a rating as well.

I’ve so far created an extension that adds a field to the comments table to hold my rating.

I have a series of radio buttons on the form for the rating, so I need the form to submit the rating at the same time as the comments are submitted.

Which hook should I be using?

Thanks.

       
Adrian Macneil (Crescendo)'s avatar
Adrian Macneil (Crescendo)
28 posts
15 years ago
Adrian Macneil (Crescendo)'s avatar Adrian Macneil (Crescendo)

There are quite a few hooks in the comments module.. check out http://ellislab.com/expressionengine/user-guide/development/extension_hooks/module/comment/index.html.

You probably also want to look through modules/comment/mod.comment.php to get an idea of what stage the hooks are running at.

Cheers

       

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.