2015-10-21, 08:21 PM
Hi guys,
I'm developing a plugin but I have an issue.
this is the part of the plugin affected:
Why it don't add submenu at forum module?
I'm developing a plugin but I have an issue.
this is the part of the plugin affected:
// after <?php
$plugins->add_hook("admin_forum_menu", "myplugin_sub_menu");
$plugins->add_hook("admin_forum_action_handler", "myplugin_action");
// end of file
function myplugin_sub_menu() {
$sub_menu['100'] = array("id" => "alerts", "title" => "Forum Alerts", "link" => "index.php?module=forum-alerts");
}
function myplugin_action() {
$actions['alerts'] = array('active' => 'alerts', 'file' => 'alerts.php');
}
Why it don't add submenu at forum module?