Hooks for thoughts

Dragooon

  • I can code! Really!
  • polygon.com has to be one of the best sites I've seen recently.
  • Posts: 1,841
Hooks for thoughts
« on March 21st, 2012, 09:39 PM »
Would it be possible to have hooks when thoughts are published?
The way it's meant to be

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Re: Hooks for thoughts
« Reply #1, on March 21st, 2012, 09:50 PM »
And presumably edited? Before or after the DB stuff, or both?
When we unite against a common enemy that attacks our ethos, it nurtures group solidarity. Trolls are sensational, yes, but we keep everyone honest. | Game Memorial

Dragooon

  • I can code! Really!
  • polygon.com has to be one of the best sites I've seen recently.
  • Posts: 1,841
Re: Hooks for thoughts
« Reply #2, on March 21st, 2012, 09:59 PM »
Added, edited, deleted would be nice. After mostly, can't see much use for a before hook.

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Re: Hooks for thoughts
« Reply #3, on March 21st, 2012, 10:02 PM »
The before hook would mostly be for altering content before saving it for some reason...

Dragooon

  • I can code! Really!
  • polygon.com has to be one of the best sites I've seen recently.
  • Posts: 1,841

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Re: Hooks for thoughts
« Reply #5, on March 21st, 2012, 10:04 PM »
So, before/after posting, before/after editing, deleting, anything else?

Dragooon

  • I can code! Really!
  • polygon.com has to be one of the best sites I've seen recently.
  • Posts: 1,841