You are here

function services_oauth_update_6001 in Services 6.3

Same name and namespace in other branches
  1. 7.3 auth/services_oauth/services_oauth.install \services_oauth_update_6001()

File

auth/services_oauth/services_oauth.install, line 30
Install, update and uninstall functions for the services_oauth module.

Code

function services_oauth_update_6001() {
  $ret = array();

  // Rename the authentication and authorization settings variables
  $authentication = variable_get('services_oauth_authentication_levels', array());
  $authorization = variable_get('services_oauth_authorization_settings', array());
  variable_del('services_oauth_authentication_levels');
  variable_del('services_oauth_authorization_settings');
  variable_set('services_oauth_authentication_levels_', $authentication);
  variable_set('services_oauth_authorization_settings_', $authorization);
  return $ret;
}