Add enterprise_hook filter to all config_agents_has_remote_configuration functions - #41

This commit is contained in:
enriquecd 2017-02-02 19:12:22 +01:00
parent 332d69d4df
commit f9817a26ad
4 changed files with 5 additions and 5 deletions

View File

@ -499,7 +499,7 @@ if ($agents !== false) {
/* Begin Update tagente.remote 0/1 with remote agent function return */
if(config_agents_has_remote_configuration($agent['id_agente'])){
if(enterprise_hook('config_agents_has_remote_configuration',$agent['id_agente'])){
db_process_sql_update('tagente', array('remote' => 1),'id_agente = '.$agent['id_agente'].'');
}
else{
@ -584,7 +584,7 @@ if ($agents !== false) {
// Has remote configuration ?
if (enterprise_installed()) {
enterprise_include_once('include/functions_config_agents.php');
if (config_agents_has_remote_configuration($agent["id_agente"])) {
if (enterprise_hook('config_agents_has_remote_configuration',$agent["id_agente"])) {
echo "<a href='index.php?" .
"sec=gagente&" .
"sec2=godmode/agentes/configurar_agente&" .

View File

@ -396,7 +396,7 @@ switch ($moduletype) {
$remote_conf = false;
if (enterprise_installed()) {
enterprise_include_once('include/functions_config_agents.php');
$remote_conf = config_agents_has_remote_configuration($id_agente);
$remote_conf = enterprise_hook('config_agents_has_remote_configuration',$id_agente);
}
/* Categories is an array containing the allowed module types

View File

@ -231,7 +231,7 @@ function modules_copy_agent_module_to_agent ($id_agent_module, $id_destiny_agent
if ($module['id_modulo'] == MODULE_DATA) {
if (enterprise_installed()) {
if (config_agents_has_remote_configuration($id_agente)) {
if (enterprise_hook('config_agents_has_remote_configuration',$id_agente)) {
$result = enterprise_hook(
'config_agents_copy_agent_module_to_agent',
array($id_agent_module, $id_new_module));

View File

@ -586,7 +586,7 @@ foreach ($agents as $agent) {
if (enterprise_installed()) {
enterprise_include_once('include/functions_config_agents.php');
if (config_agents_has_remote_configuration($agent["id_agente"])) {
if (enterprise_hook('config_agents_has_remote_configuration',$agent["id_agente"])) {
$data[9] = html_print_image("images/application_edit.png", true, array("align" => 'middle', "title" => __('Remote config')));