When submitting a form it shows and loads the page as nodes, need to fix

Comments

yaremchuk’s picture

Status: Active » Needs review

Hi Alex,

please update from repro

the following strings was added to the .module file:

/**
* Implements form_alter().
*/
function single_page_website_form_alter(&$form, &$form_state, $form_id) {
if((variable_get('site_frontpage') == 'single_page' && (drupal_is_front_page())) || arg(0) == 'single_page') {
$form['#action'] = 'single_page';
$form['#submit'][] = 'single_page_website_go_back';
}
}

function single_page_website_go_back(){
drupal_goto('single_page');
}

But there is a problems with drupal message.
Thoughts?

aburrows’s picture

Hey mate,

What problem are you getting? Where it's positioned?

yaremchuk’s picture

Hi Alex,

the problem is following,
after form submission with my redirect fix
there is no any error or success message on the Single Website Page
seems it is connected with the absence of message area on the page.

I'm going to find out the source of the issue soon.
If you have any ideas, you are welcome!

Thanks,
Vasily

aburrows’s picture

Yes that would be great I'm trying to think of a solution, I got somewhere with the d6 version so hopefully can commit a dev release very soon!

clemens.tolboom’s picture

Status: Needs review » Postponed (maintainer needs more info)

Is this problem still active?

Arvi’s picture

is this still active?

clemens.tolboom’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)

@Arvi I close this as there is no response for 2 month.

Feel free to open this again but please update the issue summary as

When submitting a form it shows and loads the page as nodes, need to fix

is not that informative is it?