By dhvani2511 on
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
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
Given users id = uid, run
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 - פיתוח תוכנה
ya its one way
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