A man was shot by police with an electronic stun gun after refusing to drop two knives he was brandishing inside a pub, a Court heard.

Trevor Claydon warned the officers he would "do life" during the stand-off inside the Kings Arms, Haworth, which followed an "enormous row" with his partner.

After being shot with the taser he fell to the ground and was arrested, prosecutor Helen Sanderson told Bradford Crown Court.

Claydon, 40, formerly of Changegate Court, Haworth, admitted making threats to kill, causing actual bodily harm, affray, criminal damage and possessing offensive weapons.

He was given a 12-month prison sentence suspended for two years, ordered to do 100 hours unpaid work for the community and placed under a two-year community order which includes taking part in a domestic violence programme.

Miss Sanderson said that on the evening of December 28 last year Claydon had gone out drinking. Later, his partner Karen Wardon went out with her friends.

When she returned home Claydon was already there and a verbal argument developed in which she threw a glass of whisky over him.

Claydon jumped on her, placed his hands over her throat and made repeated threats to kill her.

Miss Wardon ran upstairs and locked herself in the bathroom, but Claydon kicked the door in and she could see he was carrying a bread knife and a carving knife.

He raised the knives over his shoulder and she begged him not to stab her.

After running downstairs, she called the police.

Miss Wardon had suffered bruising to her neck and back, said Miss Sanderson.

Claydon, meanwhile, had gone to the pub where he talked to bar staff and told them he had threatened to kill his partner.

He became aggressive and brandished the two knives. The pub's panic alarm was pressed and members of the public started to leave.

When the police arrived, Claydon refused to drop the knives and armed officers were called to the scene.

He went towards them and it was then that an officer used the taser gun.

During interview, Claydon said he had drunk far too much that day and could not remember assaulting Miss Wardon.

Nikki Peers, mitigating, said her client's behaviour on that day was extreme and bizarre.

"This was an isolated episode at a time of significant pressure triggered by an enormous row with his partner," she added.

Passing sentence, Judge Linda Sutcliffe told Claydon: "This was a deeply disturbing incident. It must have been terrifying for your partner and very frightening for the people who were in the pub at the same time as you."

She warned him: "Breach these terms and you will serve a custodial sentence."