Toroidal effects on magnetohydrodynamic modes in tokamaks