function swftools_get_library in SWF Tools 6.3
Returns a path to the requested library, using Libraries API when it is available.
If the Libraries API is present then the library will be searched for under the profiles/$profile/libraries, sites/all/libraries, and sites/sitename/libraries.
sites/sitename/libraries has the highest priority and will "win" if it is present.
If Libraries API is not present then the library should be present in sites/all/libraries
Parameters
string $library: The name of the library, e.g. jwplayer4.
Return value
string A path to the requested library.
See also
http://drupal.org/project/libraries Libraries API
22 calls to swftools_get_library()
- hook_swftools_methods in docs/
swftools.php - Reports an embedding method or a player to SWF Tools.
- swftools_flexpaper_swftools_methods in flexpaper/
swftools_flexpaper.module - Implementation of hook_swftools_methods().
- swftools_flowplayer3_add_js in flowplayer3/
swftools_flowplayer3.module - Attaches Flowplayer 3 JavaScripts and CSS to the page.
- swftools_flowplayer3_autocomplete_player in flowplayer3/
swftools_flowplayer3.admin.inc - Autocompleter to suggest filename.
- swftools_flowplayer3_swftools_methods in flowplayer3/
swftools_flowplayer3.module - Implementation of hook_swftools_methods().
File
- includes/
swftools.core.inc, line 338 - Implements SWF Tools core functions that are common to the main module and the API module.
Code
function swftools_get_library($library) {
return ($ret = module_invoke('libraries', 'get_path', $library)) ? $ret : 'sites/all/libraries/' . $library;
}