function dbem_insert_location($location) { $EM_Location = new EM_Location($location); $EM_Location->insert(); return $EM_Location->to_array(); }