function video_format_right in Video 6.5
Same name and namespace in other branches
- 6.4 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 606 - Common Video module 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;
}