Full ELMS Learning Network documentation
function drupal_get_path
cis7 common.inc | drupal_get_path($type, $name) |
cle7 common.inc | drupal_get_path($type, $name) |
elmsmedia7 common.inc | drupal_get_path($type, $name) |
icor7 common.inc | drupal_get_path($type, $name) |
meedjum_blog7 common.inc | drupal_get_path($type, $name) |
mooc7 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 or an empty string if the item is not found.
741 calls to drupal_get_path()
- accessibility_accessibility_get_test_translation in sites/
all/ modules/ ulmus/ accessibility/ accessibility.module - Implements hook_accessibility_get_test_translation().
- accessibility_content_init in sites/
all/ modules/ ulmus/ accessibility/ modules/ accessibility_content/ accessibility_content.inc - accessibility_features_api in sites/
all/ modules/ ulmus/ accessibility/ accessibility.module - Implements hook_features_api().
- accessibility_load in sites/
all/ modules/ ulmus/ accessibility/ accessibility.module - Helper function to load the QUAIL library.
- accessibility_menu in sites/
all/ modules/ ulmus/ accessibility/ accessibility.module - Implements hook_menu().
1 string reference to 'drupal_get_path'
- module_load_include in includes/
module.inc - Loads a module include file.
File
- includes/
common.inc, line 2803 - Common functions that many Drupal modules will need to reference.
Code
function drupal_get_path($type, $name) {
return dirname(drupal_get_filename($type, $name));
}