function libraries_get_path

cis7 libraries.module libraries_get_path($name, $base_path = FALSE)
cle7 libraries.module libraries_get_path($name, $base_path = FALSE)
elmsmedia7 libraries.module libraries_get_path($name, $base_path = FALSE)
icor7 libraries.module libraries_get_path($name, $base_path = FALSE)
meedjum_blog7 libraries.module libraries_get_path($name, $base_path = FALSE)
mooc7 libraries.module libraries_get_path($name, $base_path = FALSE)

Gets the path of a library.

Parameters

$name: The machine name of a library to return the path for.

$base_path: Whether to prefix the resulting path with base_path().

Return value

The path to the specified library or FALSE if the library wasn't found.

23 calls to libraries_get_path()
accessibility_accessibility_guidelines in sites/all/modules/ulmus/accessibility/accessibility.module
Implements hook_accessibility_guidelines().
accessibility_accessibility_tests in sites/all/modules/ulmus/accessibility/accessibility.module
Implements hook_accessibility_tests().
accessibility_load in sites/all/modules/ulmus/accessibility/accessibility.module
Helper function to load the QUAIL library.
accessibility_requirements in sites/all/modules/ulmus/accessibility/accessibility.install
Implements hook_requirements().
accessibility_testswarm_testswarm_tests in sites/all/modules/ulmus/accessibility/modules/accessibility_testswarm/accessibility_testswarm.module
Implements hook_testswarm_tests();

... See full list

5 string references to 'libraries_get_path'
backup_migrate_destination_s3::s3_object in sites/all/modules/ulmus/backup_migrate/includes/destinations.s3.inc
date_popup_get_wvega_path in sites/all/modules/ulmus/date/date_popup/date_popup.module
Get the location of the Willington Vega timepicker library.
drush_fastclick_download in sites/all/modules/ulmus/fastclick/fastclick.drush.inc
Downloads fastclick.js file.
jquery_colorpicker_requirements in sites/all/modules/ulmus/jquery_colorpicker/jquery_colorpicker.install
Implements hook_requirements()
libraries_flush_caches in sites/all/modules/ulmus/libraries/libraries.module
Implements hook_flush_caches().

File

sites/all/modules/ulmus/libraries/libraries.module, line 41
External library handling for Drupal modules.

Code

function libraries_get_path($name, $base_path = FALSE) {
  $libraries = &drupal_static(__FUNCTION__);

  if (!isset($libraries)) {
    $libraries = libraries_get_libraries();
  }

  $path = ($base_path ? base_path() : '');
  if (!isset($libraries[$name])) {
    return FALSE;
  }
  else {
    $path .= $libraries[$name];
  }

  return $path;
}
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.