1
Hi all,
i'm trying to count all active modules which also have admin menu with this code:
$module_handler =& xoops_gethandler('module');
$criteria = new CriteriaCompo(new Criteria('isactive', 1));
$criteria->add(new Criteria('hasadmin', 1));
$criteria->add(new Criteria('mid', '>1'));
$valid_mods =& $module_handler->getCount($criteria);
I also need to exclude the "system" module so,as you may see,
i've added another line:
$criteria->add(new Criteria('mid', '>1'));
but it doesn't work.
Where is the error?
Thanks in advance,ralf.