You are an expert at summarizing long articles. Proceed to summarize the following text: 
thailand 's former prime minister samak sundaravej has quit as leader of the ruling party , an official said tuesday , three weeks after he was removed from office for hosting tv cooking shows .
former thai pm samak resigns as ruling party leader