I am using Views to create a view for user management, which looks like in the image below:
How to create an "Active
" or "Block
" link in my view which performs an operation for the selected user like so:
When I click on "
Active
" in the Operations column, then the user should be active.When I click on "
Block
" in the Operations column, then the user should be blocked.
Note: Views Bulk Operations (VBO) is not working. Refer to the image below. When l select all users in my view results and select "Block current user" as theoperation, then the users are not blocked. I have unstalled the VBO module and re-installed it again. And I also gave permission "user block" to that role. But nothing solved my issue.