Archive for category Uncategorized
Page redirect after node submit
Posted by Steven Van den Hout in Uncategorized on October 25th, 2010
I wanted to redirect to another page after node submit.
Setting $form['#redirect'] didn’t result in such behaviour.
It’s not a good idea to use the standard form submit handler to redirect to another page since drupal calls a number of hooks when saving a node.
What does work, is setting the $form_state['redirect'] on the submit buttons submit handler.
$form['buttons']['submit']['#submit'][] = ‘my_module_example_form_submit’
PHP 6 features
Posted by Joris in Uncategorized on December 30th, 2009
What will PHP6 bring? This article has a little summary of what the future of PHP holds.
Recent Comments