In the module file I need to get value of myprefix_cpu in the function getFieldsFromInput(). The value of myprefix_cpu is mandatory for provisioning. I can't figure out how to do this.
What I have tried in the function getFieldsFromInput():
$fields = array(// ... other keys'cpus'=> $vars['configoptions']['myprefix_cpu']);return $fields;
Question
lukasP
Hello all,
I have created package config option in:
Blesta > Packages > Options > Create option
- label: CPUs
- name: myprefix_cpu
- type quantity
I have assigned the option to group and package.
In the module file I need to get value of myprefix_cpu in the function getFieldsFromInput(). The value of myprefix_cpu is mandatory for provisioning. I can't figure out how to do this.
What I have tried in the function getFieldsFromInput():
However it is incorrect.
Thanks for any help in advance.
4 answers to this question
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now