I need to use the core condition 'Entity has field' but without the selection list restriction. With hook_rules_condition_info_alter I am able to input field names as variables.
The code in 'rules_condition_entity_has_field' requires 'field_name' to be an array, not a string. The function function field_info_field will do the preprocess job, after checking whether the input is a string or array.
But here I am stuck. I can't grab the input. For instance - a simple
crashes the site. $field_name is unknown within this (MYMODULE) module.
How to do this?