-Enabled the popular content block
-Removed ability to subscribe to entire blogs as it's .. pointless..
-Removed link clutter from node-previews:
-Removed "subscribe post" link
-Removed "Quote Post" link
These links will both appear for the nodes themselves, just not on the preview pages (for teasers).
For those interested this was accomplished in the hook_links function for both the subscriptions and quote modules:
Before:
if ($type == 'node' && user_access('post comments') && $node->comment == 2) { $links[] = l(t('quote'), "comment/reply/$node->nid", array('title' => t('Start your new comment with a quote from this post.')), 'quote=1'); } elseif ($type == 'comment' && user_access('post comments') && node_comment_mode($node->nid) == 2) { $links[] = l(t('quote'), "comment/reply/$node->nid/$node->cid", array('title' => t('Start your reply with a quote from this comment.')), 'quote=1'); }
After:
if (!$main) { if ($type == 'node' && user_access('post comments') && $node->comment == 2) { $links[] = l(t('quote'), "comment/reply/$node->nid", array('title' => t('Start your new comment with a quote from this post.')), 'quote=1'); } elseif ($type == 'comment' && user_access('post comments') && node_comment_mode($node->nid) == 2) { $links[] = l(t('quote'), "comment/reply/$node->nid/$node->cid", array('title' => t('Start your reply with a quote from this comment.')), 'quote=1'); } }
The $main variable indicates if the node is in "teaser" form or not.. Read the hook_link function documentation for more information..
-K
Tags:
- Karthik's blog
- Log in to post comments