Hi there,
Yup… just did it… I was using Tabs and Repeaters… both of which are Layout Fields.
To do it… I just used the ‘Export’ feature to generate the PHP code.
Go to: Custom Fields -> Tools -> (choose your Field Group) -> (click ‘Generate export code’)