It's all here if you can be bothered:
FA Rules & Regs
(ii) There shall be no right to a compensation or transfer fee by the previous Club of a Player who has attained the age of 24 years on or before 30th June and whose contract with that Club has expired. If a Club wishes to offer re-engagement to a Player or exercise an option contained in the agreement the following practice shall prevail.
As Bobby Grant isn't 24 it looks like Stanley will get something out of it.
__________________
Under democracy one party always devotes its chief energies to trying to prove that the other party is unfit to rule - and both commonly succeed, and are right.
Do not take life too seriously. You will never get out of it alive.