For this perhaps following idea could be a kind of code basis:

    // ToDo: Make it possible to insert group_tabs by PlugIn conventions based 
on following code
    foreach (plugin_types_installed() as $plugin_type_installed) {
        foreach (plugins_installed($plugin_type_installed) as $plugin) {
            // ToDo: Call PlugIn Method display_group_tab_allowed which 
provides the code which does all the checks here
            if (method_exists(generate_class_name($plugin_type_installed, 
$plugin->name),'group_tabs')) {
                $plugin_menu = 
call_static_method(generate_class_name($plugin_type_installed, $plugin->name), 
'group_tabs', $group->id);
                $menu = array_merge($menu, $plugin_menu);
            }
        }
    }

-- 
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:
  New

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

_______________________________________________
Mailing list: https://launchpad.net/~mahara-contributors
Post to     : mahara-contributors@lists.launchpad.net
Unsubscribe : https://launchpad.net/~mahara-contributors
More help   : https://help.launchpad.net/ListHelp

Reply via email to