drupal_get_path

Versions
4.6 – 7
drupal_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).

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

Return value

The path to the requested item.

Related topics

Code

includes/common.inc, line 1215

<?php
function drupal_get_path($type, $name) {
  return dirname(drupal_get_filename($type, $name));
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.