You are here

function uc_roles_set_expiration_properties in Ubercart 7.3

Callback for setting role expiration properties.

See also

entity_metadata_node_entity_info_alter()

1 string reference to 'uc_roles_set_expiration_properties'
uc_roles_rules_data_info in uc_roles/uc_roles.rules.inc
Implements hook_rules_data_info().

File

uc_roles/uc_roles.rules.inc, line 75
Rules hooks for uc_roles.module.

Code

function uc_roles_set_expiration_properties($expiration, $name, $value) {
  if ($name == 'user') {
    $expiration->uid = $value;
  }
}