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

Detecting Status Change

Development and Programming

Arun S.'s avatar
Arun S.
792 posts
16 years ago
Arun S.'s avatar Arun S.

Hey everyone…

I’ve been looking at the developer docs and I can’t seem to figure out which hook to tie into to run some code when a entry is closed (i.e. the status is set to status_id X).

Any advice on how which hook to tie into for that?

       
Jason Morehead's avatar
Jason Morehead
454 posts
16 years ago
Jason Morehead's avatar Jason Morehead

Have you looked at using Brandon Kelly’s “Snitch” extension? I don’t know if it’ll e-mail when an entry’s status is changed, but it will e-mail you when an entry is updated and you can specify the alert e-mail to contain the “new” status.

       
Arun S.'s avatar
Arun S.
792 posts
16 years ago
Arun S.'s avatar Arun S.
Have you looked at using Brandon Kelly’s “Snitch” extension? I don’t know if it’ll e-mail when an entry’s status is changed, but it will e-mail you when an entry is updated and you can specify the alert e-mail to contain the “new” status.

Thanks for the advice, Jason.

I just cracked Snitch open to see what Brandon was doing. His approach is the same as my standby plan - run some logic each time an entry is updated. I guess I’ll go that route as well. I was sort of hoping that there would be something slightly more specialized to what I wanted to do, but I guess it’s negligible to run a conditional every time an entry is submitted.

Thanks!

       
silenz's avatar
silenz
1,648 posts
16 years ago
silenz's avatar silenz

Nope, there’s nothing more specialized. Updating an entry is the only event that leads to a change of status after all.

       

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.