You are here

function drupal_get_path in Drupal 4

Same name and namespace in other branches
  1. 8 core/includes/bootstrap.inc \drupal_get_path()
  2. 5 includes/common.inc \drupal_get_path()
  3. 6 includes/common.inc \drupal_get_path()
  4. 7 includes/common.inc \drupal_get_path()
  5. 9 core/includes/bootstrap.inc \drupal_get_path()

Returns the path to a system item (module, theme, etc.).

Parameters

$type: The type of the item (i.e. theme, theme_engine, module).

$name: The name of the item for which the path is requested.

Return value

The path to the requested item.

Related topics

1 call to drupal_get_path()
install.inc in includes/install.inc

File

includes/common.inc, line 1215
Common functions that many Drupal modules will need to reference.

Code

function drupal_get_path($type, $name) {
  return dirname(drupal_get_filename($type, $name));
}