You are here

function _inactive_user_with_content in Inactive User 6

Same name and namespace in other branches
  1. 5 inactive_user.module \_inactive_user_with_content()
  2. 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 525
The inactive user module controls inactive users.

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));
}