How to create a custom text input filter? I am using plain text format. I want to create an input filter for when a user enters #15, it should be converted to a link pointing to the post #15. I want to do this for the Statuses (Social Microblog) module. The link of an individual status is like this: https://www.example.com/statuses/15.

Just for your reference, I found a snippet. It is specifically for nodes though, which was meant to be used with custom filter module.

My question: How to create such filter for statuses?
Take a look at the Custom Filter module.


  This module allows you to create content filter using regular expressions. Instead of creating a new module for each filter you need, now you can easily create and organize your own filters. Your filter will appear in the input format configuration page.


If you want to do it yourself in a custom module, you can implement hook_filter_info