Pages

Friday 19 February 2016

Adding “Unblock user” option in Views Bulk Operations field

In drupal 7-

We need a Rules module, after enable Rules module and Rules UI go to

Configuration -> Workflow-> Rules-> Component-> Add Component

In Component plugin dropdown-> select Action Set
then add next page 
Fill the mandatory field Name as (Ex: Unblock user) shown in image


Select Data type from list User ---Label Unblock user ---machine name unblock_user -- usage parameter 
then click on continue button
then click on Add Action Link (highlighted)



then Select the action to add User ->Unblock User
Select Data Selector -> unblock-user and Save


Now go to- Views Page add field Bulk operations there will be present Unblock user option as image shown following-

In setting option you can set Permission roles wise as image shown below-

No comments:

Post a Comment