You are here

function notifications_ui_update_6002 in Notifications 6.4

Change some variables for uniform notifications_ui_[object]_options

File

notifications_ui/notifications_ui.install, line 42

Code

function notifications_ui_update_6002() {
  if ($value = variable_get('notifications_ui_user', 0)) {
    variable_set('notifications_ui_user_options', $value);
  }
  if ($value = variable_get('notifications_ui_node', 0)) {
    variable_set('notifications_ui_node_options', $value);
  }
  variable_del('notifications_ui_user');
  variable_del('notifications_ui_node');
  return array();
}