function iframe_validate_size in Iframe 6
1 call to iframe_validate_size()
File
- ./
iframe.module, line 801 - Defines simple iframe field types. based on the cck-module "link" by quicksketch MODULE-Funtions
Code
function iframe_validate_size($size, $default = "100") {
dmsg(3, 'func iframe_validate_size (size=' . $size . ', default=' . $default);
if (is_numeric($size)) {
return $size > 0 ? $size : $default;
}
if (preg_match('/^\\d+\\%$/', $size)) {
return $size;
}
return $default;
}