I've created a helper that works great for displaying a user's age in the message_user_info.
Only problem is, I can't get it to honour the option in a user's preferences which is $user['show_dob_year'].
Of all the $user parameters that are available to message_user_info (and loads are that I can use), that isn't one of them.
If there's no way of passing that parameter to the template, is there anything else I can do? Is there some sort of function I can write that will check it?
Something so simple is proving incredibly difficult.
Annoyingly, $visitor['show_dob_year'] is available, but that's useless for respecting a user's privacy.
Only problem is, I can't get it to honour the option in a user's preferences which is $user['show_dob_year'].
Of all the $user parameters that are available to message_user_info (and loads are that I can use), that isn't one of them.
If there's no way of passing that parameter to the template, is there anything else I can do? Is there some sort of function I can write that will check it?
Something so simple is proving incredibly difficult.
Annoyingly, $visitor['show_dob_year'] is available, but that's useless for respecting a user's privacy.