I have a Custom HTML field that uses a module I wrote that grabs specific data from the database. I am trying to pass to it the [user_id] value from the profile of the person the module is being loaded into. The Custom HTML looks like the below.
Code:
This is a summary of my outstanding meal requests and their current statuses.
{loadposition my-matches-module}
Is there any way the module code can be modified to receive the profile object so that fields from it can be used in the module? This would be truly awesome. Maybe there's a CB method the module can instantiate to create the object?
If not, maybe there is a way I can replicate what this very simple module does right in a Code field? The output of the code field would have to be HTML. That would not be ideal, but it might be my only option.
Thanks in advance,
Bruce