You are here

function mediafront_array_to_object in MediaFront 6.2

Same name and namespace in other branches
  1. 6 mediafront.module \mediafront_array_to_object()
  2. 7 mediafront.module \mediafront_array_to_object()
1 call to mediafront_array_to_object()
mediafront_add_media in ./mediafront.module
Function that will add media to the $additions array

File

./mediafront.module, line 655

Code

function mediafront_array_to_object($array = array()) {
  $object = new stdClass();
  foreach ($array as $akey => $aval) {
    $object->{$akey} = $aval;
  }
  return $object;
}