Heat oil in a pan. Add mustard seeds. When it starts to pop add urad dhal and fry for few minutes. Add the chopped onions and green chilies and fry until the onions become translucent. Then add the shredded cabbage and salt and mix well. Add little water. Cover the pan. Lower the heat and cook until the cabbage is done. Add the grated coconut. Stir once and remove from heat.