I'm basically trying to make changes to a field on ALL user accounts on a certain action. I've got a boolean value in user account details that I want to turn to 'off' when the administrator adds a certain type of content. (This will be for super important notes that need acknowledging, so while the user can change the value to verify they've seen said notes, whenever a new one is added everyone's needs to go back to 0 instead of 1.)
In D7 I accomplished this sort of thing with VBO and Rules modules, which allowed for a rules action 'Load a list of entity objects from a VBO View.' to work from. I haven't really worked with it much yet, but 'bulk operations' seems to be part of core along with views now (which is great - but doesn't give me that option in rules any longer.)
Is there a way to access this functionality again in Backdrop with rules or any thoughts on an alternative method?
- Content type of 'Super Important Note' added. - All user accounts (regardless of roles) have the boolean field 'HasViewed' set to 0.
Screenshot of a D7 rule that did this (albeit when cron was run instead of when content was added, but the event isn't an issue to change.)
I don't believe this rules action is implemented in Backdrop. In D7, this action was defined as part of the module views_bulk_operations. Now that bulk operations is part of the module views, that rule action needs to be created in a separate custom module.
It shouldn't be too difficult to create a custom module that implements hook_rules_action_info() and pretty much copy the necessary code found in D7's
views_bulk_operations.rules.inc
. You would need to copy the definition ofviews_bulk_operations_action_load_list
within the functionviews_bulk_operations_rules_action_info()
, and the following callbacks and helper functions:Good luck!