function drupal_get_path
Same name and namespace in other branches
- 6.x drupal-6.x/includes/common.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 or an empty string if the item is not found.
172 calls to drupal_get_path()
- AggregatorTestCase::getAtomSample in drupal-7.x/
modules/ aggregator/ aggregator.test - AggregatorTestCase::getRSS091Sample in drupal-7.x/
modules/ aggregator/ aggregator.test - AggregatorUpdatePathTestCase::setUp in drupal-7.x/
modules/ simpletest/ tests/ upgrade/ update.aggregator.test - Overrides DrupalWebTestCase::setUp() for upgrade testing.
- aggregator_test_feed in drupal-7.x/
modules/ aggregator/ tests/ aggregator_test.module - Page callback. Generates a test feed and simulates last-modified and etags.
- AJAXFrameworkTestCase::testLazyLoad in drupal-7.x/
modules/ simpletest/ tests/ ajax.test - Test that new JavaScript and CSS files added during an AJAX request are returned.
1 string reference to 'drupal_get_path'
- module_load_include in drupal-7.x/
includes/ module.inc - Loads a module include file.
Archivo
- drupal-7.x/
includes/ common.inc, line 2803 - Common functions that many Drupal modules will need to reference.
Código
function drupal_get_path($type, $name) {
return dirname(drupal_get_filename($type, $name));
}