drupal_get_path($type, $name)
drupal-5/includes/common.inc, line 1371
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.
The path to the requested item.
| Name | Description |
|---|---|
| Input validation | Functions to validate user input. |
<?php
function drupal_get_path($type, $name) {
return dirname(drupal_get_filename($type, $name));
}
?>