Republican presidential hopeful and Texas Governor Rick Perry on Tuesday slammed a court ruling that invalidated parts of a law he signed that would force doctors to conduct a sonogram for women seeking an abortion.

"This important sonogram legislation ensures that every Texas woman seeking an abortion has all the facts about the life she is carrying, and understands the devastating impact of such a life-changing decision," Perry, a staunch conservative, said in a statement.

He called the ruling "a great disappointment to all Texans who stand in defense of life."

The Austin, Texas court found the statute unconstitutional as it required doctors to tell patients details that were not medically relevant. The court placed a temporary restraining order against the state, making the law in effect unenforceable.

Abortion rights advocates hailed the ruling as a triumph for women and physicians alike.

Among the requirements for doctors was the necessity to make the fetal heartbeat audible to the woman before conducting an abortion, if carrying out the procedure at a stage in pregnancy when that is possible.

The patient would also be forced to hear their doctors' detailed description of the fetal development that had been revealed in the sonogram -- after that they would still have to wait at least 24 hours before returning to have the abortion procedure.