Is there any way to change the light attenuation model?

Currently there are only two models which can be switched on/off by “Use Inverse Squared Falloff”. Is there any way to modify or create a new attenuation model?