Where would I find the variables for the actions block?
In the sys_objects_actions, for the mail button, there is this:
if ({ID} == {member_id}) return;
return _t('{cpt_send_letter}');
where would the {member_id} variable be defined?
I have added a new button to Suspend a Profile, but I only want it available to a specific user type (I added a field in the Profiles table called UserType).
This is what I have for my new block that I created (Called Suspend) under the Eval Field:
if ({ID} == {member_id}) return;
$UserType = {UserType};
if ( $UserType == 'Lead Staff' ) {
return _t('{cpt_suspend}');
}
So, I am trying to get this to work.
Thanks in advance.