Skip to content

Instantly share code, notes, and snippets.

@adrexia
Created July 16, 2014 04:17
Show Gist options
  • Save adrexia/1134352457a1308343b8 to your computer and use it in GitHub Desktop.
Save adrexia/1134352457a1308343b8 to your computer and use it in GitHub Desktop.
public function updateCMSFields(FieldList $fields) {
// Make sure settings tab is last
$formContent = $fields->fieldByName('Root.Settings');
$fields->removeByName('Settings');
$fields->findOrMakeTab('Root.Settings', $formContent);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment