function _video_object_to_array in Video 6.4
Same name and namespace in other branches
- 6.5 video_formatter.inc \_video_object_to_array()
- 7 video.module \_video_object_to_array()
Helper funcations
1 call to _video_object_to_array()
- theme_video_html5 in ./
video_formatter.inc - Play HTML5 videos
File
- ./
video_formatter.inc, line 253 - Video formatter hooks and callbacks.
Code
function _video_object_to_array($data) {
if (is_array($data) || is_object($data)) {
$result = array();
foreach ($data as $key => $value) {
$result[$key] = _video_object_to_array($value);
}
return $result;
}
return $data;
}