function commerce_file_license_rules_action_update_state in Commerce File 7
Rules action: Update a license state
1 string reference to 'commerce_file_license_rules_action_update_state'
- commerce_file_rules_action_info in ./
commerce_file.rules.inc - Implements hook_rules_action_info().
File
- ./
commerce_file.rules.inc, line 318 - Provides Rules integration for entities provided via the CRUD API.
Code
function commerce_file_license_rules_action_update_state($license, $status_name) {
$state = commerce_file_license_state_load($name);
commerce_file_license_status_update($license, $state['default_status']);
}