You are here

function notifications_ui_settings_form_submit in Notifications 7

Submit display options

File

notifications_ui/notifications_ui.admin.inc, line 73
User pages for User Interface for subscriptions modules

Code

function notifications_ui_settings_form_submit(&$form, &$form_state) {
  $options = array();
  foreach (notifications_subscription_type() as $type => $info) {
    foreach ($form_state['values'][$type] as $display => $value) {
      $options[$display][$type] = $value;
    }
  }
  foreach ($options as $display => $values) {
    notifications_option_array_set('subscription_types', $display, $values);
  }

  // This can affect menus so
  menu_rebuild();
}