Code

Added requirement dependencies
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 26 May 2010 07:51:55 +0000 (07:51 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 26 May 2010 07:51:55 +0000 (07:51 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18707 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/goto/admin/groups/apps/class_groupApplication.inc

index a6088185fdfa4e76fcafc9397830fdaf33a07b8b..00bf09d3a84640910c5db0068c5e146ceb4c55dd 100644 (file)
@@ -1373,20 +1373,23 @@ class appgroup extends plugin
    */ 
   static function plInfo()
   {
-    return (array(
-          "plShortName"   => _("Applications"),
-          "plDescription" => _("Group applications"),
-          "plSelfModify"  => FALSE,
-          "plDepends"     => array(),
-          "plPriority"    => 7,
-          "plSection"     => array("administration"),
-          "plCategory"    => array("groups"),
-          "plProvidedAcls"=> array(
-          "plRequirements"=> array('ldapSchema' => array('gotoSubmenuEntry'=>'>=2.7','gotoMenuEntry' => '>=2.7')),
-            "gosaMemberApplication"     => _("Application"),
-            "FAIrelease"                => _("Release"),
-            "gosaApplicationParameter"  => _("Application parameter"))
-          ));
+      return (array(
+                  "plShortName"   => _("Applications"),
+                  "plDescription" => _("Group applications"),
+                  "plSelfModify"  => FALSE,
+                  "plDepends"     => array(),
+                  "plPriority"    => 7,
+                  "plSection"     => array("administration"),
+                  "plCategory"    => array("groups"),
+                  "plRequirements"=> array(
+                      'ldapSchema' => array('gotoSubmenuEntry'=>'>=2.7','gotoMenuEntry' => '>=2.7'),
+                      'onFailureDisablePlugin' => array(get_class())
+                      ),
+                  "plProvidedAcls"=> array(
+                      "gosaMemberApplication"     => _("Application"),
+                      "FAIrelease"                => _("Release"),
+                      "gosaApplicationParameter"  => _("Application parameter"))
+                  ));
   }