summaryrefslogtreecommitdiff
path: root/modules/blog/blog.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2004-01-27 18:47:07 +0000
committerDries Buytaert <dries@buytaert.net>2004-01-27 18:47:07 +0000
commit1687dd07c95a6e14c5438bc3599fa5ff08d661ac (patch)
treeb833286c425eebb339e7084202bcdf006369d53a /modules/blog/blog.module
parentf99eb4dc488108abbf96a0e37fe6ac339a7e7026 (diff)
downloadbrdo-1687dd07c95a6e14c5438bc3599fa5ff08d661ac.tar.gz
brdo-1687dd07c95a6e14c5438bc3599fa5ff08d661ac.tar.bz2
- Patch 5049 by JonBob: allow a module to define multiple node types.
Diffstat (limited to 'modules/blog/blog.module')
-rw-r--r--modules/blog/blog.module12
1 files changed, 5 insertions, 7 deletions
diff --git a/modules/blog/blog.module b/modules/blog/blog.module
index 3d4dfd04e..9b091b735 100644
--- a/modules/blog/blog.module
+++ b/modules/blog/blog.module
@@ -8,13 +8,8 @@ function blog_settings() {
return $output;
}
-function blog_node($field) {
- global $user;
-
- $info["name"] = t("personal blog entry");
- $info["description"] = t("A blog is a regularly updated journal made up of individual entries, often called posts, that are time stamped and typically arranged by the day, with the newest on top (a diary is the reverse). They tend to be quite personal, often containing links to things you've seen, or to editorials that you find interesting. Some blogs also contain original material written solely for the blog. Since a Blog is personal, you and only you have full control over what you publish. The most interesting blog entries or those blog entries that fit the site's topic well might get promoted to the front page by the community or by users with the access do this.");
-
- return $info[$field];
+function blog_node_name($node) {
+ return t("personal blog entry");
}
function blog_perm() {
@@ -85,6 +80,9 @@ function blog_help($section) {
case 'node/add/blog':
$output = variable_get('blog_help', '');
break;
+ case 'node/add#blog':
+ $output = t("A blog is a regularly updated journal made up of individual entries, often called posts, that are time stamped and typically arranged by the day, with the newest on top (a diary is the reverse). They tend to be quite personal, often containing links to things you've seen, or to editorials that you find interesting. Some blogs also contain original material written solely for the blog. Since a Blog is personal, you and only you have full control over what you publish. The most interesting blog entries or those blog entries that fit the site's topic well might get promoted to the front page by the community or by users with the access do this.");
+ break;
}
return $output;