mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 16:55:05 +02:00
Added a function to get the agent alias using a module id
This commit is contained in:
parent
354377a56a
commit
e53d75d98d
@ -1023,6 +1023,18 @@ function modules_get_agentmodule_agent_name ($id_agentmodule) {
|
||||
return (string) agents_get_name (modules_get_agentmodule_agent ($id_agentmodule));
|
||||
}
|
||||
|
||||
/**
|
||||
* Get agent alias of an agent module.
|
||||
*
|
||||
* @param int $id_agente_modulo Agent module id.
|
||||
*
|
||||
* @return string The alias of the given agent module.
|
||||
*/
|
||||
function modules_get_agentmodule_agent_alias ($id_agentmodule) {
|
||||
// Since this is a helper function we don't need to do casting
|
||||
return (string) agents_get_alias (modules_get_agentmodule_agent ($id_agentmodule));
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the module name of an agent module.
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user