[ Index ]

PHP Cross Reference of Drupal 6 (yi-drupal)

title

Body

[close]

/includes/ -> path.inc (summary)

(no description)

File Size: 251 lines (8 kb)
Included or required: 3 times
Referenced: 0 times
Includes or requires: 0 files

Defines 9 functions

  drupal_init_path()
  drupal_lookup_path()
  drupal_get_path_alias()
  drupal_get_normal_path()
  arg()
  drupal_get_title()
  drupal_set_title()
  drupal_is_front_page()
  drupal_match_path()

Functions
Functions that are not part of a class:

drupal_init_path()   X-Ref
Initialize the $_GET['q'] variable to the proper normal path.


drupal_lookup_path($action, $path = '', $path_language = '')   X-Ref
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.

param: $action
param: $path
param: $path_language
return:

drupal_get_path_alias($path, $path_language = '')   X-Ref
Given an internal Drupal path, return the alias set by the administrator.

param: $path
param: $path_language
return:

drupal_get_normal_path($path, $path_language = '')   X-Ref
Given a path alias, return the internal path it represents.

param: $path
param: $path_language
return:

arg($index = NULL, $path = NULL)   X-Ref
Return a component of the current Drupal path.

When viewing a page at the path "admin/content/types", for example, arg(0)
would return "admin", arg(1) would return "content", and arg(2) would return
"types".

Avoid use of this function where possible, as resulting code is hard to read.
Instead, attempt to use named arguments in menu callback functions. See the
explanation in menu.inc for how to construct callbacks that take arguments.

param: $index
param: $path
return:

drupal_get_title()   X-Ref
Get the title of the current page, for display on the page and in the title bar.

return:

drupal_set_title($title = NULL)   X-Ref
Set the title of the current page, for display on the page and in the title bar.

param: $title
return:

drupal_is_front_page()   X-Ref
Check if the current page is the front page.

return:

drupal_match_path($path, $patterns)   X-Ref
Check if a path matches any pattern in a set of patterns.

param: $path
param: $patterns
return:



Generated: Mon Jul 9 18:01:44 2012 Cross-referenced by PHPXref 0.7