I tried this, and couldn't get custom paths to work (ended up implementing hook_custom_theme - which did all I needed).

Trying to uninstall didn't work, as it called two undefined functions:

admin_theme_admin_theme_info
admin_theme_list

Looks like these are simple placed in the wrong place - you'll have to refactor to get it uninstalled.

Comments

gisle created an issue. See original summary.

joel_osc’s picture

Priority: Normal » Major

This is a real issue... after the module is disabled you no longer have access to the modules functions so the uninstall bombs.

Jessica.K’s picture

Status: Active » Closed (duplicate)
Related issues: +#1315630: admin_theme_uninstall fails to invoke module hook

Ran into a similar problem today but with 500 error on uninstall attempt; turns out this may have already been solved. Try updating to dev then uninstalling, or apply the patch here and uninstall (worked for me): https://www.drupal.org/project/admin_theme/issues/1315630

If this is a different problem with the same symptom, feel free to reopen with more details.