If an importer is attached to a node, the import page is by default using the admin theme. Whats the best way to override this?

Comments

apmsooner created an issue. See original summary.

MegaChriz’s picture

Status: Active » Fixed

You can do so with the hook hook_admin_paths_alter(). Set the path "node/*/import" to FALSE to make that path use the default theme instead of the admin theme.

Example:

/**
 * Implements hook_admin_paths_alter().
 *
 * Do not use admin theme for node/*/* paths from the Feeds module.
 */
function mymodule_admin_paths_alter(&$paths) {
  $paths['node/*/import'] = FALSE;
  $paths['node/*/delete-items'] = FALSE;
  $paths['node/*/log'] = FALSE;
}

Status: Fixed » Closed (fixed)

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