Create a VBO action enabling the ability to change the autosubscribe settings for users in a single action. IE - I want to use VBO and an action "autosubscribe" to turn it on for lots of users.

Comments

rjbrown99’s picture

Hackish workaround.

1) Create view of type user
2) Select users, VBO option "Execute arbitrary PHP script"
3) Here's my script to take the user object, change autosubscribe to 1, and I also flip the messaging_default to mimemail.

$settings = array();
$settings['notifications_auto'] = 1;
$settings['messaging_default'] = 'mimemail';
$user = &$object;
user_save($user, $settings);
cgmonroe’s picture

ZenLax’s picture

Nice thanks. Did you have any issues with this or update the module code at all? I'm thinking about porting it over to D7.

cgmonroe’s picture

I have one update that I haven't uploaded yet. The subscribe/unsubscribe to OG Groups needed some changes to work correctly. I'll try to get the new version uploaded this week.... to the main issue thread:

#1364066: Notifications_Utils module (attached) - Support for Views Bulk Operations and some UI enhancements.