You are here

function notifications_option_array_set in Notifications 7

Set the same property for a family of array variables

3 calls to notifications_option_array_set()
notifications_admin_events_form_submit in ./notifications.admin.inc
Event configuration administration
notifications_admin_subscriptions_settings_submit in ./notifications.admin.inc
Subscription settings submit, disable all subscriptions not allowed
notifications_ui_settings_form_submit in notifications_ui/notifications_ui.admin.inc
Submit display options

File

./notifications.module, line 1178
Notifications module

Code

function notifications_option_array_set($name, $property, $values) {
  $options =& drupal_static('notifications_options');
  foreach ($values as $type => $value) {
    $array = notifications_option_get($name . '_' . $type);
    $array[$property] = $value;
    notifications_option_set($name . '_' . $type, $array);
  }
}