diff --git a/oauth_common.consumers.inc b/oauth_common.consumers.inc index 231ca8f..9e12baa 100644 --- a/oauth_common.consumers.inc +++ b/oauth_common.consumers.inc @@ -228,7 +228,7 @@ function oauth_common_form_consumer_submit($form, &$form_state) { drupal_set_message(t('Added the consumer @name', array('@name' => $values['name']))); } - drupal_goto(sprintf('user/%d/oauth/consumers', $consumer->uid)); + $form_state['redirect'] = sprintf('user/%d/oauth/consumer', $consumer->uid); } /** @@ -266,5 +266,5 @@ function oauth_common_form_consumer_delete_submit($form, &$form_state) { $consumer->delete(); drupal_set_message(t('Deleted the consumer @name', array('@name' => $consumer->name))); - drupal_goto(sprintf('user/%d/oauth/consumers', $consumer->uid)); + $form_state['redirect'] = sprintf('user/%d/oauth/consumer', $consumer->uid); }