Anti-seizure medications function by modulating the activity of neurotransmitters, ion channels, or other aspects of neuronal function. For example, phenytoin and carbamazepine stabilize the neuronal membrane by inhibiting sodium channels, while valproate increases the levels of the inhibitory neurotransmitter GABA.