← Back to team overview

mahara-contributors team mailing list archive

[Bug 1749408] Re: Make it possible for PlugIns defining a grouptab

 

Environment tested: Master
Browser tested: Chrome

===================
Manual Test Script
===================

Preconditions: 
1. Tester must have access to the code 
2. Group must exist 

Test Steps:
1. Browse to a a group 
2. Confirm Group tabs are displayed (ie. About | Members | Forums etc...)
3. edit code file  
/module/framework/lib.php
4. Add the following code to the end of the class 
	  public static function group_tabs($groupid, $role) {
         return array(
                'test' => array(
                    'path' => 'groups/files',
                    'url' => 'artefact/file/groupfiles.php?group='.$groupid,
                    'title' => Test,
                    'weight' => 80,
                ),
            );
        }
5. Refresh the Group page 
6. confirm that the title "Test" is now displayed in the group tabs 
7. edit code file  /artefact/annotation/lib.php
8. Add the following code to the end of the class 
	  public static function group_tabs($groupid, $role) {
        return array(
                'test11111' => array(
                    'path' => 'groups/files',
                    'url' => 'artefact/file/groupfiles.php?group='.$groupid,
                    'title' => Test11111,
                    'weight' => 80,
                ),
            );
        }
9. confirm that the title "Test11111" is now displayed in the group tabs 


Catalyst QA Approved ✔

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1749408

Title:
  Make it possible for PlugIns defining a grouptab

Status in Mahara:
  Fix Committed

Bug description:
  Currently we are developing an artefact plugin and a module plugin and
  therefore we need to have related grouptabs for users to use the new
  functionalities of these plugins.

  Unfortunately such additional tabs are only considered for interaction
  plugins.

  For our purposes we use a workaround by adding some code to the
  lib/group.php file at line 2046 to get this handled for our plugins
  like it is implemented as core code at line 2022 and following.

  It would be nice if group menu items of other plugin types than
  interaction could be defined if necessary by default without modifying
  the mahara core.

  Thank you
  Alex

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1749408/+subscriptions


References