Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When using the core function file_move, to move a managed file to a sub-directory under 'public://', e.g. 'public://my_folder'
Media Browser Plus' hooked function...
media_browser_plus_move_file($tid, $file, $replace = FILE_EXISTS_RENAME, $save = TRUE)
is invoked subsequently, and returns the file location back to 'public://'
It looks as though the callback 'media_browser_plus_move_file_callback($file, $folder)' might be changed/patched to distinguish when to invoke this hooked file_move function.
Can anyone advise?