function drupal_get_path in Drupal 6
Same name and namespace in other branches
- 8 core/includes/bootstrap.inc \drupal_get_path()
- 4 includes/common.inc \drupal_get_path()
- 5 includes/common.inc \drupal_get_path()
- 7 includes/common.inc \drupal_get_path()
- 9 core/includes/bootstrap.inc \drupal_get_path()
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.
41 calls to drupal_get_path()
- aggregator_init in modules/
aggregator/ aggregator.module - Implementation of hook_init().
- block-admin-display-form.tpl.php in modules/
block/ block-admin-display-form.tpl.php - block-admin-display-form.tpl.php Default theme implementation to configure blocks.
- block_admin_display_form in modules/
block/ block.admin.inc - Generate main blocks administration form.
- book_init in modules/
book/ book.module - Implementation of hook_init(). Add's the book module's CSS.
- color_get_info in modules/
color/ color.module - Retrieve the color.module info for a particular theme.
File
- includes/
common.inc, line 1790 - Common functions that many Drupal modules will need to reference.
Code
function drupal_get_path($type, $name) {
return dirname(drupal_get_filename($type, $name));
}