The course credit field that is defined via hook_field_extra_fields() and populated in hook_node_view() is output regardless of whether there are any applicable credits.
Added a patch that simply checks that there are relevant credits first before adding the #markup property.

CommentFileSizeAuthor
course_credit-empty-field.patch499 byteskyoder

Comments

kyoder created an issue. See original summary.

djdevin’s picture

Version: 7.x-1.2 » 7.x-2.x-dev
djdevin’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.