backdrop-contrib / entity_plus

This module wraps in a variety of additional entity-related functionality from various sources. Partial port of D7 Entity API.
https://backdropcms.org/project/entity_plus
GNU General Public License v2.0
3 stars 11 forks source link

Add property info `comment` (node comment settings) to node.info.inc #149

Closed argiepiano closed 1 year ago

argiepiano commented 1 year ago

Currently, the property comment of nodes is not available to metadata wrappers, and to other modules that use wrappers (for example Views Bulk Operations and Rules). This property indicates whether comments are open, closed or hidden for a specific node.

Adding property info for this column would allow, among other things, to bulk-set this property with VBO (this would solve Backdrop's request https://github.com/backdrop/backdrop-issues/issues/2297), and access/change the values with Rules.

PR coming

argiepiano commented 1 year ago

PR #150 ready for review.

hosef commented 1 year ago

I looked at the changes and everything looked fine to me. I also ran tests to confirm that this would not break existing functionality.

The changes have been merged into 1.x.

laryn commented 1 year ago

Thanks @argiepiano and @hosef!