Yea ok ignore my other edit
Mmm.... the idea of building graves in masjid is not tollerated anymore due to the disagreements, the sheikhs point of view is completely right, the whole issue is if u are praying over a grave or into a grave, in almadina you find the prophets grave is in the masjid...