path.inc

Functions to handle paths in Drupal, including path aliasing.

These functions are not loaded for cached pages, but modules that need to use them in hook_boot() or hook exit() can make them available, by executing "drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);".

File

includes/path.inc

Functions

Name Description
current_path Return the current URL path of the page being viewed.
drupal_cache_system_paths Cache system paths for a page.
drupal_clear_path_cache Clear the path cache.
drupal_get_normal_path Given a path alias, return the internal path it represents.
drupal_get_path_alias Given an internal Drupal path, return the alias set by the administrator.
drupal_is_front_page Check if the current page is the front page.
drupal_lookup_path Given an alias, return its Drupal system URL if one exists. Given a Drupal system URL return one of its aliases if such a one exists. Otherwise, return FALSE.
drupal_match_path Check if a path matches any pattern in a set of patterns.
drupal_path_alias_whitelist_rebuild Rebuild the path alias white list.
drupal_path_initialize Initialize the $_GET['q'] variable to the proper normal path.
drupal_valid_path Checks a path exists and the current user has access to it.
path_delete Delete a URL alias.
path_get_admin_paths Gets a list of administrative and non-administrative paths.
path_is_admin Determines whether a path is in the administrative section of the site.
path_load Fetches a specific URL alias from the database.
path_save Save a path alias to the database.

© 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/includes!path.inc/7.x