You are here

function mediafront_array_to_object in MediaFront 7

Same name and namespace in other branches
  1. 6.2 mediafront.module \mediafront_array_to_object()
  2. 6 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 665

Code

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