diff options
author | Dries Buytaert <dries@buytaert.net> | 2002-01-31 20:23:44 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2002-01-31 20:23:44 +0000 |
commit | c1c612b12826ab9bf65283f5430f4c7558e24699 (patch) | |
tree | a77fe6d40f7412e8aa89102c3ff25460c8c3540e /modules/story.module | |
parent | 64d11e1cc2a330778bb57dff2daf3e5bec29f5ee (diff) | |
download | brdo-c1c612b12826ab9bf65283f5430f4c7558e24699.tar.gz brdo-c1c612b12826ab9bf65283f5430f4c7558e24699.tar.bz2 |
- Made the calendar module accept a $date parameter such that you
can jump directly to a certain date in the archives. Also made
the calendar link to itself such that it is self-contained.
- Code beautifications: quoted a lot of arrays, removed dead code
and simplified a few things.
- Replaced the Calendar class by one function "calendar_display":
using a class (or class instance, or object) doesn't make sense
in the archives' case.
- Renamed "calendar.module" to "archive.module".
- Fixed a /problem/ with node settings not always being saved like
expected.
- Reorganized the user menu: renamed a couple of links for clarity
and structure.
- Fixed a few typos.
Diffstat (limited to 'modules/story.module')
-rw-r--r-- | modules/story.module | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/modules/story.module b/modules/story.module index 9ca781de0..fcffb42ab 100644 --- a/modules/story.module +++ b/modules/story.module @@ -32,7 +32,7 @@ function story_save($op, $node) { } if ($op == "create") { - if (user_access("adminster nodes")) { + if (user_access("administer nodes")) { return array(); } else { @@ -49,6 +49,14 @@ function story_save($op, $node) { } } +function story_link($type) { + if ($type == "menu.create") { + $links[] = "<a href=\"module.php?mod=node&op=add&type=story\" title=\"". t("Add a new story.") ."\">". t("create story") ."</a>"; + } + + return $links ? $links : array(); +} + function story_help() { ?> // TODO: update documentation, outdated |