Brightflare, I have to apologize for calling you a troll. I just found it really questionable that someone would ask for a replacement for shallots in a recipe that calls for a large amount, yet say that they hate onions and even weaker variants like leeks! And as I told Nicko I had a few drinks and fired away without thinking
I'm glad everyone else was helpful. I just wanted to let you know I didn't mean to be rude. The function of shallots as well as onions would be flavor in most cases. If you can stand garlic I'd suggest adding in a small amount, but as garlic, leeks, shallots, and onion are all related I didn't figure there was any suitable stand in for a flavor you hate. So flavor aside, that only leaves texture.. and for that matter you could use anything.