You are here

function context_ui_update_6003 in Context 6

File

context_ui/context_ui.install, line 246

Code

function context_ui_update_6003() {
  $statuses = variable_get('context_status', array());
  $new_statuses = array();
  foreach ($statuses as $key => $status) {
    $new_statuses[str_replace(':', '-', $key)] = $status;
  }
  variable_set('context_status', $new_statuses);
  context_ui_invalidate_cache();
  return array();
}