Change position of entry types in a structure I was wondering if there's a way to change the position of elements in an entry type structure. I want to change the positions of the elements when a user logs in, so I'll write it in a plugin.

Any Ideas?
This did the trick:

 craft()-&gt;sections-&gt;reorderEntryTypes($entryTypeIds);


Where $entryTypeIds is an array with all the id's in the correct order