Even if my mod is not activated, it's nav/permissions are included. In the emod files, you build the active emod cache but don't use it. It just cycles through all the nav/perm files in the directory.
Is this is what it's supposed to do? Doesn't make sense to include inactive modules.
The
$eModsNavCache that is built in eMods-nav.php should be used in the .nav.php files. Similarly, the
$eModsCache built in eMods-perms.php should be used in the .perms.php files.
Example .nav.php file.
<?php
global $lang;
$lang->load('eMods/mod', 'admin');
if(isset($eModsNavCache['mod']))
{
makenavoption($lang->nav_page_one, 'eMods/mod.php?action=do_something');
makenavoption($lang->nav_page_two, 'eMods/mod.php?action=do_something_else');
makenavselect($lang->nav_mod);
}
?>
Example .perms.php file.
<?php
global $lang;
$lang->load('eMods/mod', 'admin');
if(isset($eModsCache['mod']))
{
makeyesnocode($lang->perms_can_use_mod, 'eMod_perms[canusemod]', $permissions['canusemod']);
}
?>
If your module shows in the navigation bar and on the permissions page when it is deactivated then it's likely that the module is still listed in the emods database table. Does your uninstall function for the module contain some code along the lines of this..?
$db->query("DELETE FROM ".TABLE_PREFIX."emods WHERE module='modnamehere'");
I see. Thanks
Should have read the documentation.