public function removeField($name)
    {
        foreach ($this->fields as $tab => $fields) {
            foreach ($fields as $fieldName => $field) {
                if ($fieldName == $name) {
                    unset($this->fields[$tab][$fieldName]);

                    /*
                     * Remove empty tabs from collection
                     */
                    if (!count($this->fields[$tab])) {
                        unset($this->fields[$tab]);
                    }

                    return true;
                }
            }
        }

        return false;
    }
public function removeField($name)
    {
        foreach ($this->fields as $tab => $fields) {
            foreach ($fields as $fieldName => $field) {
                if ($fieldName == $name) {
                    unset($this->fields[$tab][$fieldName]);

                    /*
                     * Remove empty tabs from collection
                     */
                    if (!count($this->fields[$tab])) {
                        unset($this->fields[$tab]);
                    }

                    return true;
                }
            }
        }

        return false;
    }
public function removeField ( $ name ) { foreach ( $ this -> fields as $ tab => $ fields ) { foreach ( $ fields as $ fieldName => $ field ) { if ( $ fieldName == $ name ) { unset ( $ this -> fields [ $ tab ] [ $ fieldName ] ) ; /*
                     * Remove empty tabs from collection
                     */ if ( ! count ( $ this -> fields [ $ tab ] ) ) { unset ( $ this -> fields [ $ tab ] ) ; } return true ; } } } return false ; }
Remove a field from all tabs by name.
@param string    $name
@return boolean
Remove a field from all tabs by name .