The code that uses this function as a theme callback in hook_menu() doesn't do anything and should be removed. The code in hook_admin_paths() already takes care of making sure that the relevant media gallery pages display in the correct theme.

Comments

David_Rothstein’s picture

Status: Active » Needs review
StatusFileSize
new904 bytes

Here's a patch, untested but it should work fine.

moloc’s picture

Status: Needs review » Reviewed & tested by the community

Tested the edit and remove pages, works as before. The menu.inc file just skip the callback, because it is not found.

lsolesen’s picture

@Moloc "The menu.inc file just skip the callback, because it is not found." --> is there something to be fixed there before the patch is committed?

@David_Rothstein You want to commit this yourself? You still have commit access as far as I can tell.

moloc’s picture

The patch fixes the issue. The callback function "_node_custom_theme" does not exist and therefore can not be executed. So the callback should be removed. This patch can be committed.

lsolesen’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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