summaryrefslogtreecommitdiff
path: root/modules/story.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/story.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/story.module')
-rw-r--r--modules/story.module9
1 files changed, 5 insertions, 4 deletions
diff --git a/modules/story.module b/modules/story.module
index a66bc6788..599842fa0 100644
--- a/modules/story.module
+++ b/modules/story.module
@@ -19,6 +19,9 @@ function story_help($section = "admin/help#story") {
case 'node/add/story':
$output = variable_get('story_help', '');
break;
+ case 'node/add#story':
+ $output = t("A story is a post that is submitted to the attention of other users and is queued in the submission queue. Users and moderators vote on the posts they like or dislike, promoting or demoting them. When a post gets above a certain threshold it automatically gets promoted to the front page.");
+ break;
}
return $output;
@@ -31,10 +34,8 @@ function story_settings() {
return $output;
}
-function story_node($field) {
- $info["name"] = t("story");
- $info["description"] = t("A story is a post that is submitted to the attention of other users and is queued in the submission queue. Users and moderators vote on the posts they like or dislike, promoting or demoting them. When a post gets above a certain threshold it automatically gets promoted to the front page.");
- return $info[$field];
+function story_node_name($node) {
+ return t("story");
}
function story_perm() {