Can we disable some of the option present under Cancel account for a particular role?

Not applicable

@Dino

Can we disable some of the option present under Cancel account for a particular role. For Example:- I have created a role who can approve/reject the registration request but during cancellation of the account, I want to provide him only with 2 option i.e 1. Disable the account and keep its content. 2. Disable the account and unpublished its content. Can we achieve this change?

0 2 197
2 REPLIES 2

Not applicable

@Anil Sagar Do we need a drupal level change for this ?

@Farhan Ahmad


Yes, This is from core Drupal.
Location: user\user.page.inc

function user_cancel_methods() {

// options goes here

}

Best way is to write custom module. unset some of the key of methods[] array like user_cancel_reassign, user_cancel_reassign and you are done.