function services_oauth_update_6001 in Services 7.3
Same name and namespace in other branches
- 6.3 auth/services_oauth/services_oauth.install \services_oauth_update_6001()
File
- auth/
services_oauth/ services_oauth.install, line 26
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;
}