Enable/Disable the administrator interface in specific paths
04/04/2016
In the following code, the implementation of hook_admin_paths_alter() is shown to exclude or add the paths that we consider necessary or unnecessary to show with the administrative theme.
/**
* Implements hook_admin_paths_alter().
*/
function hook_admin_paths_alter(&$paths) {
// Paths declared FALSE will be outside the administration interface.
$paths['node/*/edit'] = FALSE;
// Paths declared true will show in the administration interface.
$paths['custom/*/add'] = TRUE;
}