1 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.:


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


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