function _inactive_user_with_content in Inactive User 5
Same name and namespace in other branches
- 6 inactive_user.module \_inactive_user_with_content()
- 7 inactive_user.module \_inactive_user_with_content()
Returns 1 if the user has ever created a node or a comment The settings of inactive_user.module allow to protect such users from deletion
1 call to _inactive_user_with_content()
- inactive_user_cron in ./
inactive_user.module - Implementation of hook_cron
File
- ./
inactive_user.module, line 497
Code
function _inactive_user_with_content($uid) {
return db_fetch_object(db_query('SELECT uid FROM {node} WHERE uid = %d', $uid)) || db_fetch_object(db_query('SELECT uid FROM {comments} WHERE uid = %d', $uid));
}