Hello,

when i edit a file i see in the url "...%?destination=admin/content/file"
(complete url is /admin/content/file/edit-multiple/%?destination=admin/content/file)
Is it possible to change this destination with a patch or with a hook ?

I have tested rules for this with no success.

Thanks for your help.

Comments

kumkum29’s picture

Infos i use:

Plupload integration module 7.x-1.2
Multiple forms 7.x-1.0

web506’s picture

Component: File entity » Code
Issue summary: View changes

Any solution for this? I am trying to do the same thing.

joseph.olstad’s picture

Status: Active » Fixed

yes create your own hook_form_alter implementation , mymodule_form_alter($form, $form_state) and change the redirect value in the form elements based on a an indicator in form_state that is found during edit a file

Note: see other examples of using hook_form_alter

there's more than one way to do this though, thats just one of them.

You can also change the submit handler and have it process your code instead of the default submit handler or else do both.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.