You are here

function notifications_content_update_6002 in Notifications 7

Same name and namespace in other branches
  1. 6.4 notifications_content/notifications_content.install \notifications_content_update_6002()

Update enabled options (again)

File

notifications_content/notifications_content.install, line 76

Code

function notifications_content_update_6002() {
  if ($events = variable_get('notifications_events', array())) {
    $enabled = array();
    foreach ($events as $type => $type_info) {
      foreach ($type_info as $action => $status) {
        $enabled[$type . '-' . $action] = 1;
      }
    }
    variable_set('notifications_event_enabled', $enabled);
    variable_del('notifications_events');
  }
  return array();
}