1
0

ajout des commmandes enable/disable hooks

This commit is contained in:
2022-06-13 19:23:22 +02:00
parent 413c25c0b7
commit 2b18830b83
2 changed files with 26 additions and 2 deletions

View File

@ -507,6 +507,26 @@ function PropertiesDashboard($argList)
}
return "json=" . $response;
}
function apiHookActive($argList, $status)
{
global $hooks;
if (array_key_exists($argList["hook"], $hooks))
{
$hooks[$argList["hook"]]->active = $status;
if ($status)
{
return $argList["hook"] . _(" has been enabled");
}else
{
return $argList["hook"] . _(" has been disabled");
}
}else
{
return _("Hook does not exists");
}
}
/*
function apiDisplayByType($argList)
{