How can I change the add/edit field labels on the fly?
I need to be able to pull the labels from a table and display those, this lets the user define the labels for certain custom fields.
I have a master table with a field named custom_field_01, for one user this may be a field to list colours while another user may want it to list materials, they define the label in an alias table so it's unique to each user.
I've tried making the variables global and then assigning the value in before process, process record, process sql and before edit events but they don't seem to work using the following code.
$field_labels[$strTableName]['English']['custom_field_01'] = 'colours';
$field_labels[$strTableName][$_SESSION["language"]]['custom_field_01'] = 'colours';