From 8a636465767fc47f37a0768d45b86ca53a722085 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 4 Jan 2003 11:03:15 +0000 Subject: - Added an extra parameter to watchdog() which lets you specifiy an "action" or "operation" link. - Made the main page of the administration section show an overview of all watchdog entries with such action link. - Fixed typo in PostgreSQL database scheme. --- modules/node/node.module | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/node/node.module') diff --git a/modules/node/node.module b/modules/node/node.module index 56dbd2d2e..f9ea17b38 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -1085,7 +1085,7 @@ function node_submit($node) { taxonomy_node_save($nid, $node->taxonomy); } - watchdog("special", "$node->type: updated '$node->title'"); + watchdog("special", "$node->type: updated '$node->title'", l("view post", array("id" => $node->nid))); $output = t("The node has been updated."); } } @@ -1127,7 +1127,7 @@ function node_submit($node) { taxonomy_node_save($nid, $node->taxonomy); } - watchdog("special", "$node->type: added '$node->title'"); + watchdog("special", "$node->type: added '$node->title'", l("view post", array("id" => $nid))); $output = t("Thanks for your submission."); } } -- cgit v1.2.3