diff options
author | Dries Buytaert <dries@buytaert.net> | 2001-11-12 22:17:52 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2001-11-12 22:17:52 +0000 |
commit | ebb14ab94ab7d6e4e9e9e7e7cb3ba384c80bae6d (patch) | |
tree | 0316f5dcdb57363a43d80f9d504d000dcb21f4cc /modules/blog.module | |
parent | 84cdc3c6c00fe0439034d57bec63bf69501b2fd0 (diff) | |
download | brdo-ebb14ab94ab7d6e4e9e9e7e7cb3ba384c80bae6d.tar.gz brdo-ebb14ab94ab7d6e4e9e9e7e7cb3ba384c80bae6d.tar.bz2 |
- A couple of new node updates
Diffstat (limited to 'modules/blog.module')
-rw-r--r-- | modules/blog.module | 30 |
1 files changed, 20 insertions, 10 deletions
diff --git a/modules/blog.module b/modules/blog.module index b9d0a4f86..024661db0 100644 --- a/modules/blog.module +++ b/modules/blog.module @@ -39,6 +39,26 @@ function blog_access($op, $node) { } +function blog_save($op, $node) { + + if ($op == "approve") { + return array("promote" => 1); + } + + if ($op == "create") { + return array("promote" => 0, "moderate" => 0, "status" => 1); + } + + if ($op == "decline") { + return array("promote" => 0); + } + + if ($op == "update") { + return array("promote"); + } + +} + function blog_help() { ?> <p>Drupal's blog module allows registered users to maintain an online blog or diary. It provides easy-to-write and easy-to-read online diaries or journals that can be filled with daily thoughts, poetry, boneless blabber, spiritual theories, intimate details, valuable experiences, cynical rants, semi-coherent comments, writing experiments, artistic babblings, critics on current facts, fresh insights, diverse dreams, chronicles and mumbling madness available for public consumption.</p> @@ -224,16 +244,6 @@ function blog_form($node, $help, $error) { return $output; } -function blog_save($node) { - - if ($node->nid) { - return array(); - } - else { - return array("promote" => 0, "moderate" => 0, "status" => 1); - } - -} function blog_page() { global $theme, $id, $op, $date; |