function masquerade_rules_entity_property_info_alter in Masquerade Extras 7
Same name and namespace in other branches
- 7.2 masquerade_rules/masquerade_rules.module \masquerade_rules_entity_property_info_alter()
Implements hook_entity_property_info_alter.
File
- masquerade_rules/
masquerade_rules.module, line 11 - This file is required for Drupal to recognize the module.
Code
function masquerade_rules_entity_property_info_alter(&$info) {
// Adding masquerading user. provides token and rules properties.
$info['user']['properties']['masquerading'] = array(
'label' => t('Masquerading user'),
'description' => t('Masquerade user.'),
'getter callback' => '_masquerade_rules_get_masquerading_user',
'type' => 'user',
);
}