it is a simple 3 line change (see attached)

thanks for your work btw. great idea. saves time for sure

Comments

docwilmot’s picture

StatusFileSize
new5.4 KB

Better patch. D7 adds a delta to new blocks, so we can make this much simpler.

interdruper’s picture

Issue summary: View changes

If you have problems (like me) with the redirection path, because of (for example) the prefixes of a multilanguage site, in the above patch just change:

$form_state['redirect'] = 'admin/structure/block/manage/'. $form_state['values']['module'] .'/'.$form_state['values']['delta'] .'/configure';

by this simpler option:

  $form_state['redirect'] = FALSE;
nicolas bouteille’s picture

@interdruper : your solution does not work for when you add a new block and you want to save and edit... ;)

Thank you for this patch.
I don't know how to patch yet, but here are a few things that also need to be changed:
- switch($section) needs to be switch($path) in the help hook. See #314934: undefined variable section
- //This is version 6... needs to be 7 of course
- '#value' => 'Save and edit', => '#value' => t('Save and edit'), multilingual ;)

nicolas bouteille’s picture