Set admin paths to use default theme instead of admin theme.

Public

This example helps clean up user experience and always set default theme for these edit/manage pages.

</> CopyGet raw version
php
  1. <?php
  2.  
  3. function mymodule_admin_paths_alter(&$paths) {
  4. // Treat all user pages as not administrative.
  5. $paths['user/*'] = FALSE;
  6. $paths['user/*/addressbook/*/create'] = FALSE;
  7. $paths['user/*/addressbook/*/edit/*'] = FALSE;
  8. $paths['user/*/addressbook/*/delete/*'] = FALSE;
  9. }