t('Workflow'), 'label' => t('Set a Workflow state (with a comment)'), 'parameter' => array( // "parameter['node']" is for backwards compatibility: can be any entity_type. 'node' => array( 'type' => 'entity', 'label' => t('Entity'), 'description' => t('The entity to set the current workflow state of.'), // 'save' => TRUE, ), 'field' => array( 'type' => WORKFLOWFIELD_PROPERTY_TYPE, 'label' => t('Workflow field to set'), 'description' => t('The workflow field to set.'), 'restriction' => 'selector', // 'allow null' => TRUE, ), 'workflow_state' => array( 'type' => 'list', 'label' => t('New workflow state'), 'options list' => '_workflow_rules_workflow_get_options', 'description' => t('The workflow state to set (select only one).'), ), 'workflow_comment' => array( 'type' => 'text', 'label' => t('Workflow Comment'), 'description' => t('The workflow comment to set.'), 'optional' => TRUE, ), ), 'named parameter' => TRUE, 'base' => '_workflow_rules_set_state', 'callbacks' => array( 'execute' => '_workflow_rules_set_state', ), ); return $actions; }