2012-10-01, 09:46 PM
Well as the title says, how I can add another tab as shown in this picture:
I'm trying to make a small plugin, I leave the code I'm using.
This is the hook, I call:
And here the code:
And so that was that, as I have to do? I'm doing wrong?
Thanks in advance
I'm trying to make a small plugin, I leave the code I'm using.
This is the hook, I call:
$plugins->add_hook("admin_home_menu", "plugin_menu_admin_meta");
And here the code:
function plugin_menu_admin_meta()
{
$sub_menu = array();
$sub_menu[] = array("id" => "plugin_categories", "title" => 'Categories plugin', "link" => "index.php?module=plugin-categories");
return $sub_menu;
}
And so that was that, as I have to do? I'm doing wrong?
Thanks in advance