[pLog-svn] r4939 - in plugins/branches/lifetype-1.2: . remembercommentdata unported

pwestbro at devel.lifetype.net pwestbro at devel.lifetype.net
Sat Mar 3 02:08:25 EST 2007


Author: pwestbro
Date: 2007-03-03 02:08:24 -0500 (Sat, 03 Mar 2007)
New Revision: 4939

Added:
   plugins/branches/lifetype-1.2/remembercommentdata/
Removed:
   plugins/branches/lifetype-1.2/unported/remembercommentdata/
Modified:
   plugins/branches/lifetype-1.2/remembercommentdata/pluginremembercommentdata.class.php
Log:
Ported the remember comment data plugin to 1.2


Copied: plugins/branches/lifetype-1.2/remembercommentdata (from rev 4938, plugins/branches/lifetype-1.2/unported/remembercommentdata)

Modified: plugins/branches/lifetype-1.2/remembercommentdata/pluginremembercommentdata.class.php
===================================================================
--- plugins/branches/lifetype-1.2/unported/remembercommentdata/pluginremembercommentdata.class.php	2007-03-02 23:40:20 UTC (rev 4938)
+++ plugins/branches/lifetype-1.2/remembercommentdata/pluginremembercommentdata.class.php	2007-03-03 07:08:24 UTC (rev 4939)
@@ -6,20 +6,22 @@
 	{
 		var $pluginEnabled;
 
-		function PluginRememberCommentData()
+		function PluginRememberCommentData( $source = "" )
 		{
-			$this->PluginBase();
+			$this->PluginBase($source);
 
 			$this->id      = "remembercommentdata";
 			$this->author  = "Andres Bianciotto";
 			$this->desc    = "Fills the comment form fields with last entered data (cookie based)";
+            $this->version = "20070302";
 
 			$this->locales = Array( "en_UK" , "es_ES" );
 
-			$this->init();
+			if( $source == "admin" )
+				$this->initAdmin();
 		}
 
-		function init()
+		function initAdmin()
 		{
             $this->registerAdminAction( "remembercommentdata", "PluginRememberCommentDataConfigAction" );
 			$this->registerAdminAction( "updateRememberCommentDataConfig", "PluginRememberCommentDataUpdateConfigAction" );
@@ -48,6 +50,12 @@
             $retValue = "<script src=\"$baseUrl/plugins/remembercommentdata/js/remembercommentdata.js\" language=\"JavaScript\" type=\"text/javascript\"></script>";
 		    return $retValue;
 		}
-
+		
+		function getPluginConfigurationKeys()
+		{			
+			return( Array(
+				Array( "name" => "plugin_remembercommentdata_enabled", "type" => "boolean" ),
+			));
+		}
 	}
 ?>
\ No newline at end of file



More information about the pLog-svn mailing list