You are here

function _addtocopy_library_path_js in Add link to copied text 7

Returns the path to the Add to Copy library js file.

1 call to _addtocopy_library_path_js()
_addtocopy_library_version in ./addtocopy.module
Returns version of the Add to Copy library.

File

./addtocopy.module, line 91

Code

function _addtocopy_library_path_js() {
  $library_path_js =& drupal_static(__FUNCTION__, NULL);
  if (is_null($library_path_js) && ($library_path = _addtocopy_library_path())) {
    if (file_exists($library_path . '/addtocopy.js')) {
      $library_path_js = $library_path . '/addtocopy.js';
    }
  }
  return $library_path_js;
}