/**
 * @file
 *
 * Deletes system variables set by the RPX module.
 */

/**
 * Implementation of hook_uninstall().
 */
function rpx_uninstall() {
  variable_del('rpx_realm');
  variable_del('rpx_apikey');
  variable_del('rpx_admin_url');
}

I had some problems with the rpx_realm being set to an invalid value. I thought I'd be able to uninstall the module to remove the bad values, but there was no option. This patch makes it possible to remove such bad values.

Comments

jpmckinney’s picture

Status: Active » Needs review

Oh, just save this to rpx.install

nrambeck’s picture

Assigned: Unassigned » nrambeck

Thanks. I've got a new version pending that includes this kind of uninstall cleanup.

jpmckinney’s picture

Can you please push that code to the 6.x-1.x-dev release as soon as possible? I feel like I'm hacking RPX a lot to get it where I need it and I'd rather not duplicate your efforts.

nrambeck’s picture

Status: Needs review » Fixed

The latest code includes uninstall procedures.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.