On the Eisenstein ideal over function fields