i use a custom theme in my site. If i delete a file, the page is theming with the admin theme.
Is it possible to override this "file delete page" with my custom theme. I have tried with this template : template page--file.tpl.php. I have cleared cache. But it doesn't work.

Thanks for your help.


kumkum29’s picture


I found a solution. The edit file page should not be recognized as an admin page.
You must use this function in a custom module:

function mymodule_admin_paths_alter(&$paths) {
     / / Treat the file form page as a non-administrative page.
     $paths['file/*'] = FALSE;

You can use a page--file.tpl.php template in your theme.
This can be useful to someone ;)