function hook_admin_paths_alter

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

File

modules/system/system.api.php, line 525
Hooks provided by Drupal core and the System module.

Code

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;
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!system!system.api.php/function/hook_admin_paths_alter/7.x