function hook_admin_paths


Error message

User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/
cis7 system.api.php hook_admin_paths()
cle7 system.api.php hook_admin_paths()
elmsmedia7 system.api.php hook_admin_paths()
icor7 system.api.php hook_admin_paths()
meedjum_blog7 system.api.php hook_admin_paths()
mooc7 system.api.php hook_admin_paths()

Define administrative paths.

Modules may specify whether or not the paths they define in hook_menu() are to be considered administrative. Other modules may use this information to display those pages differently (e.g. in a modal overlay, or in a different theme).

To change the administrative status of menu items defined in another module's hook_menu(), modules should implement hook_admin_paths_alter().

Return value

An associative array. For each item, the key is the path in question, in a format acceptable to drupal_match_path(). The value for each item should be TRUE (for paths considered administrative) or FALSE (for non- administrative paths).

See also




Related topics

25 functions implement hook_admin_paths()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

addanother_admin_paths in sites/all/modules/ulmus/addanother/addanother.module
Implement hook_admin_paths().
block_admin_paths in modules/block/block.module
Implements hook_admin_paths().
book_admin_paths in modules/book/book.module
Implements hook_admin_paths().
book_copy_admin_paths in sites/all/modules/elmsln_contrib/book_copy/book_copy.module
Implements hook_admin_paths().
cis_example_cis_admin_paths in sites/all/modules/_my_modules/cis_examples/cis_example_cis/cis_example_cis.module
Implements hook_admin_paths().

... See full list

1 invocation of hook_admin_paths()
path_get_admin_paths in includes/
Gets a list of administrative and non-administrative paths.


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


function hook_admin_paths() {
  $paths = array(
    'mymodule/*/add' => TRUE,
    'mymodule/*/edit' => TRUE,
  return $paths;



Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/ in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/
The website encountered an unexpected error. Please try again later.