You are here

function _photobox_library_path in PhotoboxPhotobox 7

Returns the path to the Photobox library.

2 calls to _photobox_library_path()
_photobox_library_path_js in ./photobox.module
Returns the path to the Photobox library js file.
_photobox_library_version in ./photobox.module
Returns version of the Photobox library.

File

./photobox.module, line 332
Main file for the Photobox module.

Code

function _photobox_library_path() {
  $library_path =& drupal_static(__FUNCTION__, NULL);
  if (is_null($library_path)) {
    $library_path = variable_get('photobox_library_path', module_exists('libraries') ? libraries_get_path('photobox') : 'sites/all/libraries/photobox');
    if (!photobox_library_path_check($library_path)) {
      $library_path .= '/photobox';
      if (!photobox_library_path_check($library_path)) {
        watchdog('photobox', 'Photobox library is missing.', array(), WATCHDOG_ERROR);
        $library_path = FALSE;
      }
    }
  }
  return $library_path;
}