Notwithstanding any law to the contrary, whenever a local agency takes over or assumes any of the functions of another local agency under a law which provides that all or any employees of such other local agency become employees of the local agency assuming the function, the governing body of the local agency assuming the function may prescribe the qualifications and conditions under which such employees will become employees of the local agency. Any employees who do not meet such qualifications or conditions shall not become employees of the local agency.