Added function 'modules_get_agent_group'

This commit is contained in:
mdtrooper 2014-10-20 16:43:03 +02:00
parent f0b446ae9c
commit 58fc774564
1 changed files with 13 additions and 0 deletions

View File

@ -725,6 +725,19 @@ function modules_get_agentmodule ($id_agentmodule) {
}
}
function modules_get_agent_group($id_agent_module) {
$return = false;
$id_agent = modules_get_agentmodule_agent(
$id_agent_module);
if (!empty($id_agent)) {
$return = agents_get_agent_group($id_agent);
}
return $return;
}
/**
* Check the module exists in the DB.
*