function photos_page_slide in Album Photos 7.3
Same name and namespace in other branches
- 6.2 inc/photos.data.inc \photos_page_slide()
Album slideshow page.
1 string reference to 'photos_page_slide'
- photos_menu in ./
photos.module - Implements hook_menu().
File
- inc/
photos.data.inc, line 10 - Handles slideshow integration.
Code
function photos_page_slide($account) {
$v = '';
if ($account->album['album']['count'] && $account->album['image']['count']) {
list($width, $height) = explode('x', variable_get('photos_display_slide', '640x480'));
if (module_exists('dfgallery')) {
$v = dfgallery_html(array(
'url' => url('photos/data/user/' . $ac->uid . '/json.json', array(
'absolute' => TRUE,
)),
'width' => $width,
'height' => $height,
));
}
}
else {
$v = photos_page_title($ac, t('has not yet create an album'));
}
return $v;
}