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