As far as I know you'd need a global, something like:
return $DB->table('UserGroup', 'Grouping')->select('group_name', { user_id_fk => $_[0] })->fetchrow;
}
You'd call it like:
<%if the_global($user_id) eq 'GT'%>
*I think* ... do a <%GT::Template::dump%> to find the exact tag for the user id.
Code:
sub { return $DB->table('UserGroup', 'Grouping')->select('group_name', { user_id_fk => $_[0] })->fetchrow;
}
You'd call it like:
<%if the_global($user_id) eq 'GT'%>
*I think* ... do a <%GT::Template::dump%> to find the exact tag for the user id.