Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I just tried the following example but it doesn't work.
function my_module_form_alter(&$form, &$form_state, $form_id) {
// Editing Bean Form
if($form_id == 'bean_form'){
$form['#submit'][]='form_my_bean_submit';
}
}
function form_my_bean_submit($form, &$form_state) {
$form_state['redirect'] = 'someview/list';
}
Whatever i do after update the block redirects to "block/whatever/view"
Any ideas?
Comments
Comment #2
7thkey CreditAttribution: 7thkey as a volunteer commentedI'm still looking for this solution. Nobody knows how to interact with it?