From 66e1bbfb937cab81c5943c264ff52208b0a71286 Mon Sep 17 00:00:00 2001 From: Kjartan Mannes Date: Thu, 23 May 2002 14:14:48 +0000 Subject: - pending user accounts will not be notified to the site_email. - fixed access checks on the register form, do this before you enter the _save function. If registrations are disabled the register link will no longer show (again). - changed » to », using the names of entities are better than the numbers. - fixed user information being set when account is registered (properly this time, really!) - reversed the if(!...) commit. - node_add specifies more defaults. - added link to blog entries from user page. --- modules/blog/blog.module | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'modules/blog') diff --git a/modules/blog/blog.module b/modules/blog/blog.module index 2677f8e04..f3603bc5d 100644 --- a/modules/blog/blog.module +++ b/modules/blog/blog.module @@ -39,6 +39,14 @@ function blog_access($op, $node) { } +function blog_user($type, &$edit, &$user) { + switch ($type) { + case "view_public": + case "view_private": + return form_item("Blog", lm(t("View recent entries."), array("mod" => "blog", "id" => $user->uid)) ."
". lm(t("View all entries."), array("mod" => "blog", "id" => $user->uid, "all" => 1))); + } +} + function blog_save($op, $node) { if ($op == "approve") { return array("promote" => 1); @@ -205,12 +213,6 @@ function blog_page_last() { function blog_form(&$node, &$help, &$error) { global $nid, $iid; - if (!$node->status) { - $node->status = 1; - $node->moderate = 1; - $node->comment = 2; - } - if (isset($node->body)) { /* -- cgit v1.2.3