You are here

public static function video_utility::objectToArray in Video 7.2

3 calls to video_utility::objectToArray()
theme_video_html5 in ./video.theme.inc
Theme wrapper for HTML5
_video_field_get_all_converted in ./video.field.inc
_video_field_get_all_thumbnails in ./video.field.inc

File

./video.utility.inc, line 200
This file will be used to keep all utility functions data structures.

Class

video_utility
Helper functions for the Video module.

Code

public static function objectToArray($data) {
  if (is_array($data) || is_object($data)) {
    $result = array();
    foreach ($data as $key => $value) {
      $result[$key] = self::objectToArray($value);
    }
    return $result;
  }
  return $data;
}