Magnetoencephalography helps delineate the extent of the epileptogenic zone for surgical planning in children with intractable epilepsy due to porencephalic cyst/encephalomalacia.