summaryrefslogtreecommitdiff
path: root/modules/node/node.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2001-07-14 12:12:41 +0000
committerDries Buytaert <dries@buytaert.net>2001-07-14 12:12:41 +0000
commitb99d4d7a424bf52bc7a4e7908e1d0d1cfd0c7b87 (patch)
treec15103816ada4747acb83bdc3f3e861d25278f48 /modules/node/node.module
parente62e3417f7cbdbb1206f20f2f663b606a2b7b12a (diff)
downloadbrdo-b99d4d7a424bf52bc7a4e7908e1d0d1cfd0c7b87.tar.gz
brdo-b99d4d7a424bf52bc7a4e7908e1d0d1cfd0c7b87.tar.bz2
- theme system:
+ added $theme->images() - blog.module: + improved user-friendliness and rewrote most of the output routines + made quoted text /italic/ by default + integrated discussion system like it should + ... - marvin.theme: + small visual improvements
Diffstat (limited to 'modules/node/node.module')
-rw-r--r--modules/node/node.module7
1 files changed, 3 insertions, 4 deletions
diff --git a/modules/node/node.module b/modules/node/node.module
index 1d3981310..cde5f9d83 100644
--- a/modules/node/node.module
+++ b/modules/node/node.module
@@ -69,14 +69,13 @@ function node_cron() {
db_query("UPDATE node SET status = '". node_status("dumped") ."', timestamp_hidden = '' WHERE timestamp_hidden > 0 AND timestamp_hidden < ". time());
}
-function node_link($context) {
+function node_link($type, $node = 0) {
- if ($context == "admin" && user_access("administer nodes")) {
+ if ($type == "admin" && user_access("administer nodes")) {
$links[] = "<a href=\"admin.php?mod=node\">content</a>";
}
- if ($context[0] && $context[1]) {
- $node = $context[1];
+ if ($type == "node") {
if ($node->body) {
$links[] = "<a href=\"node.php?id=". $node->nid ."\">". t("read more") ."</a>";
}