function activity_user_privacy_optout in Activity 6
Same name and namespace in other branches
- 5.4 activity.module \activity_user_privacy_optout()
- 5.3 activity.module \activity_user_privacy_optout()
Check if user has activity privacy optout set.
8 calls to activity_user_privacy_optout()
- commentactivity_comment in contrib/
commentactivity/ commentactivity.module - Implementation of hook_comment().
- favorite_nodesactivity_favorite_nodes in contrib/
favorite_nodesactivity/ favorite_nodesactivity.module - Implementation of hook_favorite_nodes().
- flagactivity_flag in contrib/
flagactivity/ flagactivity.module - Implementation of hook_flag()
- nodeactivity_nodeapi in contrib/
nodeactivity/ nodeactivity.module - Implementation of hook_nodeapi().
- ogactivity_og in contrib/
ogactivity/ ogactivity.module - Implementation of hook_og().
File
- ./
activity.module, line 1082 - activity.module
Code
function activity_user_privacy_optout($user) {
if (variable_get('activity_user_optout', 0) && $user->activity_optout) {
return TRUE;
}
return FALSE;
}