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.

662 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().

... See full list

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));
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.