function video_format_right in Video 6.4
Same name and namespace in other branches
- 6.5 video_widget.inc \video_format_right()
- 7 video.module \video_format_right()
1 call to video_format_right()
- video_explode in ./
video_widget.inc - #options helper function to set our key=value for the form api.
File
- ./
video_widget.inc, line 549 - Common widget functions
Code
function video_format_right($value) {
$format = explode('x', $value, 2);
if (!isset($format[0]) || !is_numeric(trim($format[0]))) {
return false;
}
if (!isset($format[1]) || !is_numeric(trim($format[1]))) {
return false;
}
return true;
}