Skip to content

Commit 9b28fe3

Browse files
committed
Tweak the cancel user action.
1 parent a570f1f commit 9b28fe3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

actions/user_cancel.action.inc

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ function views_bulk_operations_user_cancel_action_info() {
99
'type' => 'user',
1010
'label' => t('Cancel user account'),
1111
'configurable' => TRUE,
12-
'hooks' => array(),
12+
'behavior' => array('deletes_property'),
1313
));
1414
}
1515

@@ -44,7 +44,7 @@ function views_bulk_operations_user_cancel_action_submit($form, $form_state) {
4444
);
4545
}
4646

47-
function views_bulk_operations_user_cancel_action(&$account, $context) {
47+
function views_bulk_operations_user_cancel_action($account, $context) {
4848
global $user;
4949
// Prevent the user from cancelling itself.
5050
if ($account->uid == $user->uid) {

0 commit comments

Comments
 (0)