Hi , i snapped the internal mechanism not long ago on my rear brake caliper which meant it wouldn't work with handbrake cable but would with foot brake, either way if i rememeber its easier just to replace the caliper and take your old one in. Half an hour fix; you will need to do a bit of bleeding of the brakes to get the air out.
hope that helps