function 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 or an empty string if the item is not found.
32 calls to drupal_get_path()
- block-admin-display-form.tpl.php in modules/
block/ block-admin-display-form.tpl.php - Default theme implementation to configure blocks.
- block_admin_configure in modules/
block/ block.admin.inc - Form constructor for the block configuration form.
- block_admin_demo in modules/
block/ block.admin.inc - Menu callback for admin/structure/block/demo.
- block_admin_display_form in modules/
block/ block.admin.inc - Form constructor for the main block administration form.
- block_test_system_theme_info in modules/
block/ tests/ block_test.module - Implements hook_system_theme_info().
1 string reference to 'drupal_get_path'
- module_load_include in includes/
module.inc - Loads a module include file.
File
-
includes/
common.inc, line 2969
Code
function drupal_get_path($type, $name) {
return dirname(drupal_get_filename($type, $name));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.