hi,

I need to block a user in some circumstances so how can i do it with drupal..

I am really grateful to replies

thanks
dhvani

Comments

kovalev’s picture

Given users id = uid, run the following SQL query (command):
"UPDATE users SET status=0 where uid=your_uid_here"
to unblock , set the status to 1.
------------------------------------------------------------------------------------------------------------------------------------
Sergata - פיתוח תוכנה

dhvani2511’s picture

ya i know that it is one way to do it but i wants to send the mail as well using drupal's functions...

Is there any function in user module for the same.

thanks
dhvani