sub_menu and actions hook
#1
Hi guys,
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?
My Projects - Support My Projects

Don't forget to rate posts!
Reply


Messages In This Thread
sub_menu and actions hook - by chack1172 - 2015-10-21, 08:21 PM
RE: sub_menu and actions hook - by Omar G. - 2015-10-22, 04:07 AM
RE: sub_menu and actions hook - by chack1172 - 2015-10-22, 01:18 PM

Forum Jump:


Users browsing this thread: 3 Guest(s)