At the moment there is no way to do something after sort is done - weight are saved.
This simple hook makes it possible.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | hook_after_sort_is_saved-2989140-3.patch | 1.26 KB | joegraduate |
| #3 | interdiff-2-3.txt | 1.89 KB | joegraduate |
| #2 | hook_after_sort_is_saved-2989140-2.patch | 1.33 KB | joegraduate |
Comments
Comment #2
joegraduateRe-rolled version of patch from #1 that should apply cleanly to 7.x-2.x.
Comment #3
joegraduateAfter experimenting with the hook provided in #1 and #2 a bit, it seems to me that an alter hook isn't really what's needed so I'm adding an alternate patch that adds a
module_invoke_all()style hook instead.Comment #4
trumanru commentedWorks like a charm!
I've Installed it together with https://www.drupal.org/project/views_content_cache/issues/952948
It completely solved my problems in extreme content management project.
Thank you!
Extremelly need it in the main branch!
Thank you @joegraduate!
Comment #6
istryker commentedLooks good, committed