12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- <?php
- if (!defined('GNUSOCIAL')) { exit(1); }
- class ConversationTreePlugin extends Plugin
- {
- const PLUGIN_VERSION = '2.0.0';
- public function onStartShowConversation(Action $action, Conversation $conv, Profile $scoped=null) {
- $nl = new ConversationTree($conv->getNotices($action->getScoped()), $action);
- $cnt = $nl->show();
- return false;
- }
- public function onPluginVersion(array &$versions)
- {
- $versions[] = array('name' => 'ConversationTree',
- 'version' => self::PLUGIN_VERSION,
- 'author' => 'Mikael Nordfeldth',
- 'homepage' => 'http://gnu.io/',
- 'rawdescription' =>
-
- _m('Enables conversation tree view.'));
- return true;
- }
- }
|