function _notifications_subscriptions_mass_update_helper in Notifications 6.4
Same name and namespace in other branches
- 6 notifications.manage.inc \_notifications_subscriptions_mass_update_helper()
- 6.2 notifications.manage.inc \_notifications_subscriptions_mass_update_helper()
- 6.3 notifications.manage.inc \_notifications_subscriptions_mass_update_helper()
1 call to _notifications_subscriptions_mass_update_helper()
- notifications_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 374 - Common functions for bulk management of subscriptions
Code
function _notifications_subscriptions_mass_update_helper($sid, $updates) {
$subs = notifications_load_subscription($sid);
foreach ($updates as $name => $value) {
$subs->{$name} = $value;
}
notifications_save_subscription($subs);
return $subs;
}