Skip to main content

Any API for review/comment got published?

More
12 years 3 months ago #161867 by veeco
Hello

is there any API to do something when a review is changed from unpublished to publish?

for example, i set the default system for comment is unpublished, after user post a comment, admin will see from backend and approve the comment, if it's approved then it will trigger the API to do/run function

any?

Please Log in or Create an account to join the conversation.

More
12 years 3 months ago #161903 by Xavier
Hi,

You can use the trigger:
Code:
onBeforeVoteUpdate( &$element, &$do, $currentElement )

Don't forget to put check on "$app->isAdmin()" in order to do actions only for backend.

Please Log in or Create an account to join the conversation.

Time to create page: 0.191 seconds
Powered by Kunena Forum