drupal_get_path

5 common.inc drupal_get_path($type, $name)
6 common.inc drupal_get_path($type, $name)
7 common.inc drupal_get_path($type, $name)
8 common.inc 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, profile).

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

Return value

The path to the requested item.

173 calls to drupal_get_path()

1 string reference to 'drupal_get_path'

File

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

Code

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