[RSS Feed/News] How to catch the event of "Style property changed"?

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
Hi,

I've got a problem I've been bashing my head with now for a while.

When a StyleProperty related to my addon is changed, I want to trigger an event.

I thought this would be possible with:

PHP:

Code:
public static function entity_post_save(Entity $entity)
{
    if ($entity instanceof StyleProperty && $entity->addon_id == 'Me/Addon') {
        triggerEvent();
    }
}

In the dev env, the event in triggered when a value is saved.
When I install it to my live site, the event...

Read more

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom