Add function to use IMCE in admin theme

Public

Hello everyone,

found out that it is pretty practical to use the imce with the admin theme so nothing of the JQuery stuff from the front page interferes with IMCE.

</> CopyGet raw version
php
  1. function imce_custom_theme() {
  2. // If imce page is called the admin theme will be used
  3. if (arg(0) == 'imce') {
  4. return variable_get('admin_theme');
  5. }
  6. }