I'm working on a module that provides a variable. The variable shows up correctly in data selection mode but not in Direct Input Mode. If I put in [variable-value], it shows up as [variable-value], instead of the actual value. Is there something I need to do besides simply providing the variable name, type, and value?

<?php

  $actions['rules_action_create_variable'] = $defaults + array(
    'label' => t('Create Variable'),            
    'provides' => array(
      'created_variable' => array(
        'type' => 'text', 
        'label' => t('Created variable'),  
      ),
    ),

  );
?>

Comments

subhojit777’s picture

Version: 7.x-2.1 » 7.x-2.x-dev
Issue summary: View changes

Having the same issue.

subhojit777’s picture

However it is woking with direct input mode.

subhojit777’s picture

Status: Active » Closed (duplicate)

Patch in #1547160: Support variable substitution in direct input mode.30 (the 4.61 KB one) is working. Closing this issue because its a duplicate one.