path.inc

Version 1.60 (checked in on 2010/03/10 at 19:36:14 by webchick)

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);".

Functions

NameDescription
argReturn a component of the current Drupal path.
current_pathReturn the current URL path of the page being viewed.
drupal_cache_system_pathsCache system paths for a page.
drupal_clear_path_cacheClear the path cache.
drupal_get_normal_pathGiven a path alias, return the internal path it represents.
drupal_get_path_aliasGiven an internal Drupal path, return the alias set by the administrator.
drupal_get_titleGet the title of the current page, for display on the page and in the title bar.
drupal_is_front_pageCheck if the current page is the front page.
drupal_lookup_pathGiven 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_pathCheck if a path matches any pattern in a set of patterns.
drupal_path_alias_whitelist_rebuildRebuild the path alias white list.
drupal_path_initializeInitialize the $_GET['q'] variable to the proper normal path.
drupal_set_titleSet the title of the current page, for display on the page and in the title bar.
drupal_valid_pathChecks a path exists and the current user has access to it.
path_deleteDelete a URL alias.
path_get_admin_pathsGet a list of administrative and non-administrative paths.
path_is_adminDetermine whether a path is in the administrative section of the site.
path_loadFetch a specific URL alias from the database.
path_saveSave a path alias to the database.