[geeklog-cvs] geeklog: Implemented PLG_itemSaved and PLG_itemDeleted for the C...

geeklog-cvs at lists.geeklog.net geeklog-cvs at lists.geeklog.net
Sun Jan 25 05:10:37 EST 2009


details:   http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/f7a22f228d0c
changeset: 6722:f7a22f228d0c
user:      Dirk Haun <dirk at haun-online.de>
date:      Sun Jan 25 10:40:33 2009 +0100
description:
Implemented PLG_itemSaved and PLG_itemDeleted for the Calendar plugin

diffstat:

2 files changed, 11 insertions(+), 7 deletions(-)
plugins/calendar/functions.inc               |   10 +++++++---
public_html/admin/plugins/calendar/index.php |    8 ++++----

diffs (72 lines):

diff -r d7519b7d682a -r f7a22f228d0c plugins/calendar/functions.inc
--- a/plugins/calendar/functions.inc	Sun Jan 25 10:29:26 2009 +0100
+++ b/plugins/calendar/functions.inc	Sun Jan 25 10:40:33 2009 +0100
@@ -7,10 +7,10 @@
 // | functions.inc                                                             |
 // |                                                                           |
 // | This file does two things: 1) it implements the necessary Geeklog Plugin  |
-// | API method and 2) implements all the common code needed by the CAlendar   |
-// | plugin' PHP files.                                                        |
+// | API method and 2) implements all the common code needed by the Calendar   |
+// | plugin's PHP files.                                                       |
 // +---------------------------------------------------------------------------+
-// | Copyright (C) 2000-2008 by the following authors:                         |
+// | Copyright (C) 2000-2009 by the following authors:                         |
 // |                                                                           |
 // | Authors: Tony Bibbs       - tony AT tonybibbs DOT com                     |
 // |          Tom Willett      - twillett AT users DOT sourceforge DOT net     |
@@ -594,6 +594,8 @@
                      'eid,title,event_type,url,datestart,timestart,dateend,timeend,allday,location,address1,address2,city,state,zipcode,description,owner_id,group_id,perm_owner,perm_group,perm_members,perm_anon',
                      "{$A['eid']},'{$A['title']}','{$A['event_type']}','{$A['url']}','{$A['datestart']}','{$A['timestart']}','{$A['dateend']}','{$A['timeend']}',{$A['allday']},'{$A['location']}','{$A['address1']}','{$A['address2']}','{$A['city']}','{$A['state']}','{$A['zipcode']}','{$A['description']}',$owner_id,{$A['group_id']},{$A['perm_owner']},{$A['perm_group']},{$A['perm_members']},{$A['perm_anon']}");
 
+            PLG_itemSaved($A['eid'], 'calendar');
+
             if (isset($_CA_CONF['notification']) &&
                     ($_CA_CONF['notification'] == 1)) {
                 CALENDAR_sendNotification($_TABLES['events'], $A);
@@ -827,6 +829,8 @@
 
         DB_delete($_TABLES['events'], 'eid', $eid);
         DB_delete($_TABLES['personal_events'], 'eid', $eid);
+
+        PLG_itemDeleted($eid, 'calendar');
         COM_rdfUpToDateCheck('calendar');
 
         return COM_refresh($_CONF['site_admin_url'] . '/plugins/calendar/index.php?msg=18');
diff -r d7519b7d682a -r f7a22f228d0c public_html/admin/plugins/calendar/index.php
--- a/public_html/admin/plugins/calendar/index.php	Sun Jan 25 10:29:26 2009 +0100
+++ b/public_html/admin/plugins/calendar/index.php	Sun Jan 25 10:40:33 2009 +0100
@@ -2,13 +2,13 @@
 
 /* Reminder: always indent with 4 spaces (no tabs). */
 // +---------------------------------------------------------------------------+
-// | Calendar Plugin 1.0                                                       |
+// | Calendar Plugin 1.1                                                       |
 // +---------------------------------------------------------------------------+
 // | index.php                                                                 |
 // |                                                                           |
 // | Geeklog Calendar Plugin administration page.                              |
 // +---------------------------------------------------------------------------+
-// | Copyright (C) 2000-2008 by the following authors:                         |
+// | Copyright (C) 2000-2009 by the following authors:                         |
 // |                                                                           |
 // | Authors: Tony Bibbs        - tony AT tonybibbs DOT com                    |
 // |          Mark Limburg      - mlimburg AT users DOT sourceforge DOT net    |
@@ -31,8 +31,6 @@
 // | Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.           |
 // |                                                                           |
 // +---------------------------------------------------------------------------+
-//
-// $Id: index.php,v 1.38 2008/08/10 15:29:45 dhaun Exp $
 
 require_once '../../../lib-common.php';
 require_once '../../auth.inc.php';
@@ -535,6 +533,8 @@
                        ."$perm_anon,{$P['uid']},'$location','$timestart','$timeend'");
             }
         }
+
+        PLG_itemSaved($eid, 'calendar');
         COM_rdfUpToDateCheck('calendar', $event_type, $eid);
 
         return PLG_afterSaveSwitch (



More information about the geeklog-cvs mailing list