[ Index ]
 

Code source de Drupal 5.3

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/includes/ -> path.inc (sommaire)

(pas de description)

Poids: 207 lignes (6 kb)
Inclus ou requis: 2 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 8 fonctions

  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()

Fonctions
Fonctions qui ne font pas partie d'une Classe:

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


drupal_lookup_path($action, $path = '')   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
return:

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

param: $path
return:

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

param: $path
return:

arg($index)   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
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:



Généré le : Fri Nov 30 16:20:15 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics