[geeklog-cvs] geeklog: plugin_commentsupport isn't used any more

geeklog-cvs at lists.geeklog.net geeklog-cvs at lists.geeklog.net
Sat Jun 6 08:47:58 EDT 2009


details:   http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/62178ab439a4
changeset: 7080:62178ab439a4
user:      Dirk Haun <dirk at haun-online.de>
date:      Sat Jun 06 09:32:26 2009 +0200
description:
plugin_commentsupport isn't used any more

diffstat:

 plugins/calendar/functions.inc       |   9 ---------
 plugins/polls/functions.inc          |  15 ---------------
 plugins/staticpages/functions.inc    |  15 ---------------
 public_html/docs/english/plugin.html |   5 -----
 4 files changed, 0 insertions(+), 44 deletions(-)

diffs (84 lines):

diff -r d69e448ee594 -r 62178ab439a4 plugins/calendar/functions.inc
--- a/plugins/calendar/functions.inc	Wed Jun 03 23:56:26 2009 -0400
+++ b/plugins/calendar/functions.inc	Sat Jun 06 09:32:26 2009 +0200
@@ -1275,15 +1275,6 @@
 
 
 /**
-* Calendar will not use comments
-*/
-function plugin_commentsupport_calendar()
-{
-    return false;
-}
-
-
-/**
 * Shows the statistics for the Calendar plugin on stats.php.
 * If $showsitestats is 1 then we are to only print the overall stats in the
 * 'site statistics box' otherwise we show the detailed stats
diff -r d69e448ee594 -r 62178ab439a4 plugins/polls/functions.inc
--- a/plugins/polls/functions.inc	Wed Jun 03 23:56:26 2009 -0400
+++ b/plugins/polls/functions.inc	Sat Jun 06 09:32:26 2009 +0200
@@ -94,21 +94,6 @@
 }
 
 /**
-* Geeklog is checking to see if this plugin supports comments, tell it yes.
-*
-* NOTE: to support comments you must used the same date/time based ID for your
-* widget.  In other words, to make primary keys for your plugin you should call
-* makesid().  Comments are keyed off of that...it is a limitation on how Geeklog
-* does comments.
-*
-*/
-function plugin_commentsupport_polls()
-{
-    // polls will use comments
-    return true;
-}
-
-/**
  * Poll saves a comment
  *
  * @param   string  $title  comment title
diff -r d69e448ee594 -r 62178ab439a4 plugins/staticpages/functions.inc
--- a/plugins/staticpages/functions.inc	Wed Jun 03 23:56:26 2009 -0400
+++ b/plugins/staticpages/functions.inc	Sat Jun 06 09:32:26 2009 +0200
@@ -114,21 +114,6 @@
 }
 
 /**
-* Geeklog is checking to see if this plugin supports comments, tell it no.
-*
-* NOTE: to support comments you must used the same date/time based ID for your
-* widget.  In other words, to make primary keys for your plugin you should call
-* makesid().  Comments are keyed off of that...it is a limitation on how Geeklog
-* does comments.
-*
-*/
-function plugin_commentsupport_staticpages()
-{
-    // Static Pages will use comments
-    return true;
-}
-
-/**
 * Plugin should display [a] comment[s]
 *
 * @param   string  $id     Unique idenifier for item comment belongs to
diff -r d69e448ee594 -r 62178ab439a4 public_html/docs/english/plugin.html
--- a/public_html/docs/english/plugin.html	Wed Jun 03 23:56:26 2009 -0400
+++ b/public_html/docs/english/plugin.html	Sat Jun 06 09:32:26 2009 +0200
@@ -233,11 +233,6 @@
     <th valign="top">Description of Function</th>
   </tr>
   <tr>
-    <td valign="top" class="codeheader">plugin_commentsupport_<plugin name></td>
-    <td valign="top" class="code">
-    This function does not take any parameters but simply returns true if this plugin supports comments. This call is made in Geeklog code (example: article.php) to determine if it should redirect handling to the plugin.</td>
-  </tr>
-  <tr>
     <td valign="top" class="codeheader">plugin_handlecomment_<plugin name></td>
     <td valign="top" class="code">
     This function expects the comment id (primary index in the comment table) and and type of operation (either 'save' or 'delete') to perform on the comment. It will update the plugin record with the total number of comments for this plugin item. It then handles the refresh or redirection of the user back to the plugin instead of the main site page.</td>



More information about the geeklog-cvs mailing list