Closed (fixed)
Project:
Block edit
Version:
6.x-1.2
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
25 Jan 2009 at 22:43 UTC
Updated:
9 Jun 2009 at 19:50 UTC
Jump to comment: Most recent file
Thanks for this simple, but ingenious module!
It aids the site development a lot!
I was wondering, could there be implemented a backlink to the original, so that when you save the block, you are returned to the page where you clicked the 'edit'-button instead of to blocks overview page?
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | block_edit-6.x-1.2.js_.patch | 1008 bytes | dharmatech |
| #3 | block_edit-6.x-1.2.module.patch | 532 bytes | dharmatech |
Comments
Comment #1
tony_guzman commentedI'll just chime in to vote for this feature as well.
Thanks for the great module
Tony
Comment #2
irakli commentedComment #3
dharmatech commentedThere might be a better way to do this with behaviours, but here's a patch against 6.x-1.2 that adds the "link back" functionality. After applying the patch, clear your drupal cache to reload the module and clear the browser cache so it reloads the js.
This works by adding ?destination= to the end of the URL. drupal_get_destination() is called in the module and passed as a variable that jquery can read.
Comment #4
Firetracker commentedHi hamaldus,
Great module. Will this feature get rolled into the next release?
Cheers
Zap
Comment #5
psynaptic commentedI can confirm this works.
Might be better to put the destination var in Drupal.settings.destination or something.
Comment #6
irakli commentedpsynaptic,
since you have CVS access, now, can you please apply patches, test and make a release?
thx.
Comment #7
psynaptic commentedThis has been committed to DRUPAL-6--1: http://drupal.org/cvs?commit=216846
Thanks for the patch dharmatech!