Patch (to be ported)
Project:
Block Save and Edit Buttons
Version:
6.x-1.0-beta1
Component:
Code
Priority:
Major
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
11 Apr 2012 at 16:39 UTC
Updated:
12 Nov 2014 at 16:55 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
docwilmot commentedBetter patch. D7 adds a delta to new blocks, so we can make this much simpler.
Comment #2
interdruper commentedIf 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:
by this simpler option:
Comment #3
nicolas bouteille commented@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 ;)
Comment #4
nicolas bouteille commentedThe fix for this #744378: Prevents other modules to implement hook_form_submit ex: Block Class needs to be applied too.