Code

Added some group acls
[gosa.git] / plugins / admin / fai / class_faiHook.inc
index 58b71595871ea1b491631fd2350788a9c883521e..5d370753518651d23227629f3fdd398edf4f4f2e 100644 (file)
@@ -343,8 +343,7 @@ class faiHook extends plugin
       $use_dn = $this->dn;
     }
 
-    $del = array();
-    $del[] = prepare_to_save_FAI_object($use_dn,array(),true);
+    prepare_to_save_FAI_object($use_dn,array(),true);
 
     foreach($this->SubObjects as $name => $obj){
       $use_dn = str_ireplace( get_release_dn($this->dn), $_SESSION['faifilter']['branch'], $obj['dn']);
@@ -467,6 +466,19 @@ class faiHook extends plugin
       $this->handle_object_tagging($sub_dn, $this->gosaUnitTag);
     }
   }
+
+  /* Return plugin informations for acl handling */ 
+  function plInfo()
+  {
+    return (array(  
+          "plDescription"     => _("FAI hook"),
+          "plSelfModify"      => FALSE,
+          "plDepends"         => array("objectClass" => "FAIclass"),
+          "cn"                => _("Name"),
+          "description"       => _("Description"),
+          "FAItast"           => _("Task"),
+          "FAIscript"         => _("FAI script")));
+  }
 }
 
 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: