original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Remove a field from all tabs by name.
  @param string    $name
  @return boolean
docstring_tokens: Remove a field from all tabs by name .