1
I would like an "admin" link, in my module, similar to the one in ms_weather that would allow users in a specific group to have admin rights to my module. I see how to allow admin rights to a module if you are webmaster but not if you are just a member of a group.
Also what does "$xoopsModule->mid()" do? I notice it is deprecated and as such there is no explanation of it. Where might I find what methods replace those that are deprecated?
Here is the ms_weather code snippet I'm working from. I need to check to see if the user is in a specific group to allow them to see the link to the admin page for this module.
// For Administrator only: Admin Menu
if ($xoopsUser && $xoopsUser->isAdmin($xoopsModule->mid())) {
$isadmin = true;
} else {
$isadmin = false;
}
if ($isadmin) {
echo "
";
OpenTable();
echo "
"._MSW_ADM."";
CloseTable();
} else {
echo "
";
}
Thanks
Doug P