User Blocker Module

Project Overview
Visit GitHub RepositoryBackground
I developed a Drupal module called "User Blocker" that allows users to block each other. The module provides a form where users can enter the username (or select the user using autocomplete) of another user they want to block. When the form is submitted, the selected user is blocked, preventing further interactions between the users.
Problem It Solves
The module addresses the need for users to have control over their interactions on the website. It enables users to manage their relationships by blocking specific users they no longer wish to interact with. This can be useful in cases where users experience harassment, receive unwanted messages, or simply want to avoid certain individuals.
What did I do?
I created the "User Blocker" module from scratch. I implemented a form that allows users to specify the username (or select the user using autocomplete) of the user they want to block. Upon submission, the module blocks the specified user, preventing any further interactions. I also added validation to ensure that users cannot block their own account, as it would be unnecessary. Overall, the "User Blocker" module empowers users by giving them the ability to control their interactions and create a more comfortable online environment.