Update of /cvsroot/php-blog/serendipity/include
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5265/include
Modified Files:
functions_config.inc.php functions_entries.inc.php
Log Message:
two new hooks for the upcoming multilinguage plugin
Index: functions_config.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/include/functions_config.inc.php,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- functions_config.inc.php 11 Dec 2004 17:28:06 -0000 1.10
+++ functions_config.inc.php 13 Dec 2004 15:25:39 -0000 1.11
@@ -342,11 +342,13 @@
function serendipity_iframe_create($mode, &$entry) {
global $serendipity;
+ if (!empty($serendipity['POST']['no_save'])) {
+ return true;
+ }
+
$_SESSION['save_entry'] = $entry;
$_SESSION['save_entry_POST'] = $serendipity['POST'];
- // TODO: Use a language constant for those strings
-
$attr = '';
switch($mode) {
case 'save':
Index: functions_entries.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/include/functions_entries.inc.php,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -d -r1.23 -r1.24
--- functions_entries.inc.php 13 Dec 2004 12:29:00 -0000 1.23
+++ functions_entries.inc.php 13 Dec 2004 15:25:39 -0000 1.24
@@ -850,6 +850,8 @@
return implode("\n", $errors);
}
+ serendipity_plugin_api::hook_event('backend_entry_presave', $entry);
+
$categories = $entry['categories'];
unset($entry['categories']);
@@ -1070,6 +1072,8 @@
$draftP = '';
$categoryselector_expanded = false;
+ serendipity_plugin_api::hook_event('backend_entryform', $entry);
+
if (isset($entry['isdraft']) && $entry['isdraft'] == 'true') {
$draftD = ' selected="selected"';
} else {
|