Willy,
Not quite what i trying to say.... Basically the law as it stands now, is that any foreigner in the UK be it they have leave to stay permanently or temporary, or they are from an EU defined country can marry, be it in a church or registry office.
What the immigration department says, if they deem that the marriage is a ''Marriage of Convenience'' (therefore trying to circumnavigate immigration rules and conditions) That marriage is deemed as a breach of visa conditions and therefore nulls that temporary Visa. They can then repatriate the offender back to his country of origin without recourse.
Some can claim that there life will be in danger if repatriated, in that case there temporary visa is extended with a notification of repatriation should conditions change in that country. The conditions also get much tighter as regards to that persons movements within the UK, and what he can and can't do without prior agreement by immigration. For example ....if that person goes on to breech any of his temporary visa conditions in the future, they will held in a closed facility until such time as conditions change in the persons country, or that person wishes to return of there own free will!!
Illegal immigrants, when caught will go directly to these closed facilities, whether married legitimately and for real in UK or not. As far as i know, the same rules then apply to them if they can prove that there life is in danger in there country of origin.... but most will be repatriated within 30 days....
David.....