Quantcast
Channel: Active questions tagged users - Drupal Answers
Viewing all articles
Browse latest Browse all 468

How to create a link in my view of users to perform an operation like Active or Block?

$
0
0

I am using Views to create a view for user management, which looks like in the image below:

enter image description here

How to create an "Active" or "Block" link in my view which performs an operation for the selected user like so:

  1. When I click on "Active" in the Operations column, then the user should be active.

  2. 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.

enter image description here


Viewing all articles
Browse latest Browse all 468

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>