Change area links hook code so that links can be sorted by weight.