function masquerade_rules_is_current_user_masquerading in Masquerade Extras 7
Same name and namespace in other branches
- 7.2 masquerade_rules/masquerade_rules.rules.inc \masquerade_rules_is_current_user_masquerading()
File
- masquerade_rules/
masquerade_rules.rules.inc, line 82 - Rules support for Masquerade.
Code
function masquerade_rules_is_current_user_masquerading() {
return isset($_SESSION['masquerading']) && is_numeric($_SESSION['masquerading']);
}