function drupal_get_path

You are here

7 drupal_get_path($type, $name)
4.6 drupal_get_path($type, $name)
4.7 drupal_get_path($type, $name)
5 drupal_get_path($type, $name)
6 drupal_get_path($type, $name)
8 drupal_get_path($type, $name)

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


$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() in includes/


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


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