hook_admin_paths_alter

7 system.api.php hook_admin_paths_alter(&$paths)
8 system.api.php 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

1 invocation of hook_admin_paths_alter()

File

modules/system/system.api.php, line 486
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;
}

Comments

Where do I put this?

I have a view with a search that returns users with urls to their profile pages. I´d like to show those pages on overlay.

I´m using fusion starter lite and added this code to fusion_core template.php:

function user_admin_paths_alter(&$paths) {
// Treat all user pages as administrative.
$paths['user'] = TRUE;
$paths['user/*'] = TRUE;
}

but it´s not working!
Am I doing something wrong?

Thanks in advance.

Paulo

Create a custom module

You have to create a custom module:
See http://drupal.org/node/361112 for more information.

Login or register to post comments