Permission_query_conditions for custom doctype

Hi friends,
I know we can handle permission_query_conditions of any doctype by defining it in hooks.
But can define permission_query_conditions function in my custom doctype folder? Is it possible, because I tried to use it but not working?