There's a small bug in creativecommons_link(), which means the link won't be displayed for nodes with an empty body field (or content types where the body field is disabled).

if ($teaser == 1 && $node->teaser && $node->cc && $node->cc->is_available()) {

$node->teaser is empty in such cases, so the license link is prevented from being shown.

Comments

andrewmacpherson’s picture

Status: Active » Needs review
StatusFileSize
new75.69 KB
new777 bytes
new77.03 KB

patch and screenshots...

andrewmacpherson’s picture

Title: hook_link() does not display link for empty node teasers » creativecommons_link() does not display link for empty node teasers
MPetrovic’s picture

Status: Needs review » Reviewed & tested by the community
kreynen’s picture

Version: 6.x-1.x-dev » 6.x-1.0
Status: Reviewed & tested by the community » Closed (fixed)