API CHANGE Marked Form::unsetFieldFromTab() as deprecated. Please use

Fields() and the FieldList API instead.
This commit is contained in:
Sean Harvey 2012-05-31 14:28:44 +12:00
parent 0b7af1ac17
commit 7fe0858be1

View File

@ -672,8 +672,12 @@ class Form extends RequestHandler {
/**
* Remove a field from the given tab.
*
* @deprecated 3.0 Use Fields() and FieldList API instead
*/
public function unsetFieldFromTab($tabName, $fieldName) {
Deprecation::notice('3.0', 'Use Fields() and FieldList API instead');
// Find the tab
$tab = $this->Fields()->findOrMakeTab($tabName);
$tab->removeByName($fieldName);