You are here

function _photos_select_size in Album Photos 6.2

Same name and namespace in other branches
  1. 7.3 photos.module \_photos_select_size()
2 calls to _photos_select_size()
photos_admin_settings in inc/photos.admin.inc
_photos_form in inc/photos.form.inc

File

./photos.module, line 1554

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['name']] = $size['name'] . '(' . $size['w'] . 'x' . $size['w'] . ')';
  }
  return $v;
}