public function setDefaultType ($value, DataContainer $dc)
	{
		$db = Database::getInstance();
		
		if ($value)
		{
			// There can only be one default element
			$db->prepare("UPDATE tl_elements SET defaultType='' WHERE NOT id=? AND pid=?")
			   ->execute($dc->activeRecord->id, $dc->activeRecord->pid);
		}
		
		return $value;
	}
public function setDefaultType ($value, DataContainer $dc)
	{
		$db = Database::getInstance();
		
		if ($value)
		{
			// There can only be one default element
			$db->prepare("UPDATE tl_elements SET defaultType='' WHERE NOT id=? AND pid=?")
			   ->execute($dc->activeRecord->id, $dc->activeRecord->pid);
		}
		
		return $value;
	}
public function setDefaultType ( $ value , DataContainer $ dc ) { $ db = Database :: getInstance ( ) ; if ( $ value ) { // There can only be one default element $ db -> prepare ( "UPDATE tl_elements SET defaultType='' WHERE NOT id=? AND pid=?" ) -> execute ( $ dc -> activeRecord -> id , $ dc -> activeRecord -> pid ) ; } return $ value ; }
Reset all other default type settings

@param mixed         $value
@param DataContainer $dc

@return mixed
Reset all other default type settings