[pLog-svn] r6783 - in plugins/branches/lifetype-1.2/unported/subscribe: . templates

jondaley at devel.lifetype.net jondaley at devel.lifetype.net
Sun Feb 1 08:31:52 EST 2009


Author: jondaley
Date: 2009-02-01 08:31:52 -0500 (Sun, 01 Feb 2009)
New Revision: 6783

Modified:
   plugins/branches/lifetype-1.2/unported/subscribe/pluginsubscribe.class.php
   plugins/branches/lifetype-1.2/unported/subscribe/templates/config.template
Log:
updated to 1.2

Modified: plugins/branches/lifetype-1.2/unported/subscribe/pluginsubscribe.class.php
===================================================================
--- plugins/branches/lifetype-1.2/unported/subscribe/pluginsubscribe.class.php	2009-02-01 13:31:45 UTC (rev 6782)
+++ plugins/branches/lifetype-1.2/unported/subscribe/pluginsubscribe.class.php	2009-02-01 13:31:52 UTC (rev 6783)
@@ -19,7 +19,7 @@
                 "sign up for them.";
             $this->author = "Jon Daley";
             $this->locales = Array("en_UK");
-            $this->version = "20070708";
+            $this->version = "20090131";
 			if( $source == "admin" )
 				$this->initAdmin();
 			else
@@ -41,7 +41,7 @@
             $this->addMenuEntry("/menu/controlCenter/manageRecentPlugins",
                                 "subscribe_subscriptions",
                                 "?op=subscribe", "");
-            this->init(); // TODO: only needed for the POST_ADD, maybe just do that here instead of calling init()?
+            $this->init(); // TODO: only needed for the POST_ADD, maybe just do that here instead of calling init()?
         }
         
         function init(){
@@ -218,5 +218,10 @@
                 return;
             }
         }
+
+        function getPluginConfigurationKeys(){
+            return(Array(Array( "name" => "plugin_subscribe_enabled", "type" => "boolean")));
+        }
+        
     }
 ?>
\ No newline at end of file

Modified: plugins/branches/lifetype-1.2/unported/subscribe/templates/config.template
===================================================================
--- plugins/branches/lifetype-1.2/unported/subscribe/templates/config.template	2009-02-01 13:31:45 UTC (rev 6782)
+++ plugins/branches/lifetype-1.2/unported/subscribe/templates/config.template	2009-02-01 13:31:52 UTC (rev 6783)
@@ -10,7 +10,7 @@
    <label for="pluginEnabled">{$locale->tr("label_enable")}</label>
    <span class="required"></span>
    <div class="formHelp">
-     <input class="checkbox" type="checkbox" name="pluginEnabled" id="pluginEnabled" {if $pluginEnabled} checked="checked" {/if} value="1" />{$locale->tr("subscribe_enabled")}
+     <input class="checkbox" type="checkbox" name="pluginEnabled" id="pluginEnabled" {if $pluginEnabled} checked="checked" {/if} value="1" {user_cannot_override key=plugin_subscribe_enabled}disabled="disabled"{/user_cannot_override} />{$locale->tr("subscribe_enabled")}
    </div>
   </div> 
  </fieldset>



More information about the pLog-svn mailing list