You are here

function _media_youtube_set_include_path in Media: YouTube 6

Add the Zend path to PHP class includes.

4 calls to _media_youtube_set_include_path()
media_youtube_upload_video in includes/media_youtube.media_mover.inc
Upload a video to YouTube through Media Mover.
media_youtube_zend_path in ./media_youtube.module
Return the path to the Zend library.
_media_youtube_check_upload in includes/media_youtube.api.inc
Check the upload status of a video.
_media_youtube_get_auth_sub_http_client in includes/media_youtube.api.inc
Convenience method to obtain an authenticted Zend_Http_Client object.

File

./media_youtube.module, line 337
Embedded Video Field provider file for YouTube.com.

Code

function _media_youtube_set_include_path($path = NULL) {
  static $path_set;
  if (!isset($path_set)) {
    if (!isset($path)) {
      $path = media_youtube_zend_path();
    }
    $path_set = set_include_path(get_include_path() . PATH_SEPARATOR . $path);
  }
}