function _flickrgallery_check_file in FlickrGallery 6.2
Helper function for checking required phpFlickr.php file
3 calls to _flickrgallery_check_file()
File
- ./
flickrgallery.module, line 176 - This module shows the sets and photo's from a Flickr account
Code
function _flickrgallery_check_file() {
$library_path = libraries_get_path('phpFlickr');
if (file_exists($library_path . '/phpFlickr.php')) {
return TRUE;
}
else {
if (user_access('administer flickr settings')) {
drupal_set_message(t('You need to download and place phpFlickr.php inside sites/all/libraries/phpFlickr: ') . l('http://code.google.com/p/phpflickr/', 'http://code.google.com/p/phpflickr/'), 'error');
}
return FALSE;
}
}