index 244af77bde30cf836f0e256d61a0bf2e60e328b0..52b4e76b03076afe4ab00cb11d11248bdb63aafd 100644 (file)
var $FAIscript = "";
var $description = "";
var $status = "new";
-
+ var $parent = NULL;
var $FAIstate = "";
function faiHookEntry ($config, $dn= NULL,$object=false)
/* Call common method to give check the hook */
$message= plugin::check();
+ if(isset($this->parent->SubObjects[$this->cn]) && $this->cn != $this->orig_cn){
+ $message[] =_("There is already a hook with the given name.");
+ }
+
if(empty($this->FAIscript)) {
$message[]=_("Please enter a value for script.");
}