1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-20 04:32:01 +02:00

Merge pull request #4275 from Jimmi08/patch-4

example for render help new way
This commit is contained in:
Cameron 2020-12-02 11:14:10 -08:00 committed by GitHub
commit 5e0cc872f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -303,6 +303,16 @@ class plugin_blank_admin_ui extends e_admin_ui
$ns->tablerender("Hello",$text);
}
// left-panel help menu area. (replaces e_help.php used in old plugins)
public function renderHelp()
{
$caption = LAN_HELP;
$text = 'Some help text';
return array('caption'=> $caption,'text'=> $text);
}
public function beforePrefsSave($new_data, $old_data)
{
@ -379,4 +389,4 @@ function headerjs() // needed for the checkboxes - how can we remove the need to
{
return e107::getAdminUI()->getHeader();
}
*/
*/