How to pass parameter to 'options list' attribute in hook_rules_condition_info? I am declaring a condition in which I have the following parameters:

            'node_type' =&gt; array(
            'type' =&gt; 'text',
            'label' =&gt; t('the node type'),
            'options list' =&gt;/*'entitystep_get_list_node_types'*/ 'node_type_get_names' ,
            'restriction' =&gt; 'input',
        ),
        'node_field' =&gt; array(
            'type' =&gt; 'text', //TODO: find or create node_field datatype? *node_element?
            'label' =&gt; t('the node its field to be checked'),
            'options list' =&gt; 'entitystep_get_fields' 


// TODO: check how to pass a parameter to the entitystep_get_fields!!! ($node_type)
            ),

In the 'entitystep_get_fields (on the bottom) I have to pass the selected node_type (=the first parameter)

These are the functions I need to call:

function entitystep_get_list_node_types() {
    $types = db_query("SELECT n.type FROM node_type");
    return types;
}


 function entitystep_get_nodes_by_type($node_type) {
        $nodes = db_query("SELECT * FROM node WHERE type=" . $node_type );
        return $nodes;
    }
Have a look to the entity condition "entity_is_of_bundle"

In this example there are three parameters and they are displayed through a multistep form. To do this, you will need to alter the form. In this example, it is rules_condition_entity_is_of_bundle_form_alter

You can notice that depending on the form state, some elements are hidden. When you go to the next step, you can access form values. In this example, we can access entity bundles of the entity type as do the function rules_entity_bundle_options. The type of the entity is within $element-&gt;settings['type']

I hope it is clear for you.