1.15.x common.inc backdrop_get_path($type, $name)
1.12.x common.inc backdrop_get_path($type, $name)
1.14.x common.inc backdrop_get_path($type, $name)
1.10.x common.inc backdrop_get_path($type, $name)
1.11.x common.inc backdrop_get_path($type, $name)
1.13.x common.inc backdrop_get_path($type, $name)
1.7.x common.inc backdrop_get_path($type, $name)
1.8.x common.inc backdrop_get_path($type, $name)
1.9.x common.inc backdrop_get_path($type, $name)

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

Parameters

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

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

Return value

The path to the requested item or an empty string if the item is not found.:

File

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

Code

function backdrop_get_path($type, $name) {
  return dirname(backdrop_get_filename($type, $name));
}