Thanks mikeNo, it doesn't matter which way they are connected. The electro magnets in the brake assembly are not sensitive to polarity.
That will be the easy part. You will need to put some thought into routing the cables and protecting them so it doesn't happen again.
cheers
Mike
I added a 3inch length of wire so plenty of play....Try to cable tie the wires around the axle as a temp measure to keep the strain off the wires going into the hub. If they break off you are up for a lot more work either rejoining the wires inside the hub or fitting new magnets. Either way it means removing the hub and repacking the bearings.
cheers
Mike