Created a link to create a new user using a popup. After submitting the form, the form refreshes on the popup with a drupal confirmation message at the top of it instead of just giving the normal "OK" popup. Also, after closing the popup, the page does not reload new content like it usually does (despite using popups-form as a class).

I'm assuming it has something to do with the redirect of the form. It must be different than the node edit pages.

Any ideas?

Comments

kvvnn’s picture

EDIT : No issue here

mstef’s picture

Status: Active » Closed (fixed)

if('user_register' == $form_id) {
$form['destination'] = '';
}

charlie-s’s picture

Mike, can you ellaborate on this code snippet? What does setting the destination to null achieve?