1 common.inc | backdrop_get_path($type, $name) |
Returns the path to a system item (module, theme, etc.).
Parameters
string $type: The type of the item (i.e. theme, theme_engine, module, profile).
string $name: The name of the item for which the path is requested.
Return value
string: The path to the requested item or an empty string if the item is not found.
File
- core/
includes/ common.inc, line 3339 - Common functions that many Backdrop modules will need to reference.
Code
function backdrop_get_path($type, $name) {
$path = (string) backdrop_get_filename($type, $name);
return dirname($path);
}