function _notifications_manage_subscriptions_mass_update_helper in Notifications 7
1 call to _notifications_manage_subscriptions_mass_update_helper()
- notifications_manage_subscriptions_mass_update in ./
notifications.manage.inc - Make mass update of subscriptions, changing all nodes in the $nodes array to update them with the field values in $updates.
File
- ./
notifications.manage.inc, line 310 - Common functions for bulk management of subscriptions
Code
function _notifications_manage_subscriptions_mass_update_helper($sid, $updates) {
$subs = notifications_subscription_load($sid);
foreach ($updates as $name => $value) {
$subs->{$name} = $value;
}
notifications_save_subscription($subs);
return $subs;
}