You are here

function _video_object_to_array in Video 7

Same name and namespace in other branches
  1. 6.5 video_formatter.inc \_video_object_to_array()
  2. 6.4 video_formatter.inc \_video_object_to_array()

Helper funcations

1 call to _video_object_to_array()
theme_video_html5 in ./video.theme.inc
Theme wrapper for HTML5

File

./video.module, line 744

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;
}