Heat the oil in a small frying pan and fry the mustard seeds over a high heat for a minute or until they start to splutter. Add the shallot and garlic paste, followed by the spices, and cook for around 10 minutes, stirring every now and then, until the onion is soft and translucent.