english/libraries/joomla/form/form.php
/**
	 * Method to remove a field from the form definition.
	 *
	 * @param   string  $name   The name of the form field for which remove.
	 * @param   string  $group  The optional dot-separated form group path on which to find the field.
	 *
	 * @return  boolean  True on success.
	 *
	 * @since   11.1
	 */
Method to remove a field from the form definition.
@param   string  $name   The name of the form field for which remove.
@param   string  $group  The optional dot-separated form group path on which to find the field.

@return  boolean  True on success.


Method to remove a field from the form definition . @param string $name The name of the form field for which remove . @param string $group The optional dot - separated form group path on which to find the field . @return boolean True on success .
public function removeField($name, $group = null)
	{
		if (!($this->xml instanceof JXMLElement)) {
			return false;
		}
		$element = $this->findField($name, $group);
		if ($element instanceof JXMLElement) {
			$dom = dom_import_simplexml($element);
			$dom->parentNode->removeChild($dom);
		}
		return true;
	}
public function removeField ( $ name , $ group = null ) { if ( ! ( $ this -> xml instanceof JXMLElement ) ) { return false ; } $ element = $ this -> findField ( $ name , $ group ) ; if ( $ element instanceof JXMLElement ) { $ dom = dom_import_simplexml ( $ element ) ; $ dom -> parentNode -> removeChild ( $ dom ) ; } return true ; }
Method to remove a field from the form definition.
Method to remove a field from the form definition .
// Make sure there is a valid JForm XML document. // TODO: throw exception. // Find the form field element from the definition. // If the element exists remove it from the form definition.