summaryrefslogtreecommitdiff
path: root/modules/blog/blog.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2004-07-04 10:30:42 +0000
committerDries Buytaert <dries@buytaert.net>2004-07-04 10:30:42 +0000
commit353c05d01536aac26fec7e9cfee0e84838973286 (patch)
treee95fd1a0dc783de471ec5fd2ed142046ed81fc6b /modules/blog/blog.module
parentf3aa87122efa054eb12b7b2f25dd95b81132c7c5 (diff)
downloadbrdo-353c05d01536aac26fec7e9cfee0e84838973286.tar.gz
brdo-353c05d01536aac26fec7e9cfee0e84838973286.tar.bz2
- Made it possible to edit blog posts and made the blog module use tabs.
Diffstat (limited to 'modules/blog/blog.module')
-rw-r--r--modules/blog/blog.module5
1 files changed, 1 insertions, 4 deletions
diff --git a/modules/blog/blog.module b/modules/blog/blog.module
index 43118fa40..39dfe52b3 100644
--- a/modules/blog/blog.module
+++ b/modules/blog/blog.module
@@ -254,10 +254,7 @@ function blog_link($type, $node = 0, $main) {
}
if ($type == 'node' && $node->type == 'blog') {
- if (blog_access('update', $node)) {
- $links[] = l(t('edit this blog entry'), "node/$node->nid/edit", array('title' => t('Edit this blog entry.')));
- }
- elseif (arg(0) != 'blog' && arg(1) != $node->uid) {
+ if (arg(0) != 'blog' && arg(1) != $node->uid) {
$links[] = l(t("%username's blog", array('%username' => $node->name)), "blog/$node->uid", array('title' => t("Read %username's latest blog entries.", array('%username' => $node->name))));
}
}