Reimplement subject_link hook and add some new link attribute variables