Make it possible for PlugIns defining a grouptab
Bug #1749408 reported by
Alexander Del Ponte
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
Wishlist
|
Unassigned |
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
Changed in mahara: | |
importance: | Undecided → Wishlist |
status: | New → In Progress |
milestone: | none → 18.10.0 |
Changed in mahara: | |
status: | In Progress → Fix Committed |
tags: | added: nominatedfeature |
Changed in mahara: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
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 types_installed () as $plugin_ type_installed) { installed( $plugin_ type_installed) as $plugin) { group_tab_ allowed which provides the code which does all the checks here 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);
foreach (plugin_
foreach (plugins_
// ToDo: Call PlugIn Method display_
if (method_
}
}
}