I'd like to know how to define a parameter function for field on a vardefs.php like this one :

'myfield' =>
array (
'name' => 'myfield',
'vname' => 'LBL_MYFIELD',
'type' => 'enum'',
'function' =>
array (
'name' => 'getCountry',
),
'source' => 'non-db',
),

What I want to have for this field, it's a select-list of country (id + name), which depends of the module (that's the parameter I'd like to pass to the function getCountry).

Is already my type =enum right ?


Thanks
Franck