1.20.x common.inc backdrop_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, 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.:


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


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