pre_process has_many form field

edited August 2015 in Modules
Hi,
I have a module with a has_many relationship to another module.
Now I want to restrict the displayed values in the multi box in the create/edit view to a subset of the databasetable content, but the content for the frontend should not be restricted...

So as I understand I cannot use the where condition on the $has_many global variable. I thought of defining a pre_process function call for the form field...

Now my question is what I have to return in that function to overwrite the content of the multi field?

Comments

  • edited August 2015
    aaah sorry... forget my question... got it. model is the attribute I can use, then I don't need a pre_process function.
    Got it working
Sign In or Register to comment.