function _photos_select_size in Album Photos 7.3
Same name and namespace in other branches
- 6.2 photos.module \_photos_select_size()
Format size selection options.
2 calls to _photos_select_size()
- photos_admin_settings in inc/
photos.admin.inc - @file Admin settings form(s) and submit handler.
- _photos_form in inc/
photos.form.inc - Node album settings form.
File
- ./
photos.module, line 2508 - Implementation of photos.module.
Code
function _photos_select_size($none = 0) {
if ($none) {
$v[] = 'Do not show';
}
$info = photos_upload_info(0);
foreach ($info['size'] as $size) {
$v[$size['style']] = $size['name'];
}
return $v;
}