function _share42_library_path in Share42 - social sharing buttons 7
Same name and namespace in other branches
- 6 share42.module \_share42_library_path()
- 7.2 share42.module \_share42_library_path()
Returns the path to the Share42 library.
3 calls to _share42_library_path()
- share42_block_view in ./
share42.module - Implements hook_block_view().
- share42_requirements in ./
share42.install - Implements hook_requirements().
- _share42_library_version in ./
share42.module - Returns version of the Share42 library.
File
- ./
share42.module, line 115 - Main file for the Share42 module.
Code
function _share42_library_path() {
$library_path =& drupal_static(__FUNCTION__, NULL);
if (is_null($library_path)) {
$library_path = variable_get('share42_library_path', module_exists('libraries') ? libraries_get_path('share42') : 'sites/all/libraries/share42');
if (!file_exists($library_path . '/share42.js')) {
watchdog('share42', 'Share42 library is missing.', array(), WATCHDOG_ERROR);
$library_path = FALSE;
}
}
return $library_path;
}