hook_admin_paths_alter

  1. drupal
    1. 8
    2. 7
Versions
8 – 7 hook_admin_paths_alter(&$paths)

Redefine administrative paths defined by other modules.

Parameters

$paths An associative array of administrative paths, as defined by implementations of hook_admin_paths().

See also

hook_admin_paths()

Related topics

Code

modules/system/system.api.php, line 486

<?php
function hook_admin_paths_alter(&$paths) {
  // Treat all user pages as administrative.
  $paths['user'] = TRUE;
  $paths['user/*'] = TRUE;
  // Treat the forum topic node form as a non-administrative page.
  $paths['node/add/forum'] = FALSE;
}
?>