It would be good if other modules could alter the rows render array created in entityreference_view_widget_rows(), so that they can change the markup if needed/desired. Attached patch adds a drupal_alter() at the end of entityreference_view_widget_rows() to allow for that.

CommentFileSizeAuthor
#2 drupal_alter_evw_rows-2910922-1.patch484 bytesbrunodbo

Comments

brunodbo created an issue. See original summary.

brunodbo’s picture

Status: Active » Needs review
StatusFileSize
new484 bytes
jsacksick’s picture

Status: Needs review » Needs work

@brunodbo: I think it'd make sense to pass the loaded $entities instead of the IDS, and we'd need to document the hook in the .api.php.

  • jsacksick committed f23ac13 on 7.x-2.x
    Issue #2910922 by brunodbo, jsacksick: Allow modules to alter the widget...
jsacksick’s picture

Status: Needs work » Fixed

Thanks, committed a slightly different patch.

Status: Fixed » Closed (fixed)

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