function _ais_get_size in Adaptive Image Styles (ais) 7
Loads the size saved in the array
Parameters
string $name: Machine name of the image style
array $ais: Array of image styles
Return value
integer Returns the max size, default is zero (0).
1 call to _ais_get_size()
- ais_admin_settings in ./
ais.admin.inc - Generates the AIS administration form
File
- ./
ais.module, line 321 - Adaptive Image Styles Module
Code
function _ais_get_size($name, &$ais) {
foreach ($ais as $is) {
if ($is['name'] == $name) {
return $is['size'];
}
}
return 0;
}