There's a number of calls to drupal_set_message() after the form is submitted. However, these aren't appearing, which I traced to a redirect to the home page:
$form_state['redirect'] = '/'; (mass_contact.page.inc, line 175)

To workaround, I altered the form, added a custom submit handler, and unset($form_state['redirect']);

Thanks
Shaun

Comments

oadaeh’s picture

There's a number of calls to drupal_set_message() after the form is submitted. However, these aren't appearing, which I traced to a redirect to the home page:

I'm not seeing this behavior. Maybe you have another module installed that is creating this situation?

$form_state['redirect'] = '/'; (mass_contact.page.inc, line 175)

I think you meant line number 715.

To workaround, I altered the form, added a custom submit handler, and unset($form_state['redirect']);

It was added for this reason:

  // Redirect to the home page, rather than back to the mail page, to avoid
  // contradictory messages if flood control has been activated.

I suppose I could add a check for the flood control activation and redirect or not, based on that setting, but I still think you have something else going on there.

oadaeh’s picture

Status: Active » Postponed (maintainer needs more info)
oadaeh’s picture

Version: 7.x-1.0-beta2 » 7.x-1.x-dev
Category: bug » feature
Status: Postponed (maintainer needs more info) » Active

I'm changing the issue to reflect one of my comments in #1:

I suppose I could add a check for the flood control activation and redirect or not, based on that setting...