Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

get discussion tags in function DiscussionsController_DiscussionMeta_Handler($Sender);

keefokeefo New
edited November 2013 in Vanilla 2.0 - 2.8

Currently I am writing my own plugin.

I was able to use this function in my plugin to emit some meta data in discussions list.

But I couldn't find how to get each discussion tags.

I try to use following test code, but not found useful information.

echo '<pre>'; var_dump($Sender->Tags); echo '</pre>';
echo '<pre>'; var_dump($Sender->Discussion->Tags); echo '</pre>';

Dump sender will generate a huge list and it's really difficult to find the right one.

echo '<pre>'; var_dump($Sender); echo '</pre>';

Please light me a way! Thank you.

Comments

  • Options

    I have found the solution:

    $Discussion=$Sender->EventArguments['Discussion'];
    $Tags = $Discussion->Tags;
    
Sign In or Register to comment.