In hook_install() of your module define the appropriate array (name, label, pattern, module, hidden) and add it to default date settings with: system_date_format_save($date_format)
Then add hook_uninstall() to remove the formats when the module is uninstalled.
Worth mentioning as it was in zulip chat by @yorkshirepudding
I just tested and the two work together without issue as long as you don't use the "Exclude comments from Content...
There is also Node Comments Search - this searches the node and all comments (default search is node and first page of comments) as part of the content search. Izzy's module above is a separate...
Posted1 week 1 day ago by Martin Price | System Horizons Ltd (yorkshirepudding) on:
If there is no response, alternatively, you can use a View with a list of comments, with a filter based on the comment text. I haven't tried it myself, I just got an idea.
Comments
Never mind, I figured it out.
In hook_install() of your module define the appropriate array (name, label, pattern, module, hidden) and add it to default date settings with: system_date_format_save($date_format)
Then add hook_uninstall() to remove the formats when the module is uninstalled.
I guess, my question is answered. ;)