You are here

function administerusersbyrole_views_data_alter in Administer Users by Role 7

Same name and namespace in other branches
  1. 7.2 views/administerusersbyrole.views.inc \administerusersbyrole_views_data_alter()

Implements hook_views_data_alter().

File

views/administerusersbyrole.views.inc, line 11
Views include file.

Code

function administerusersbyrole_views_data_alter(&$data) {

  // Change the Views core handler that provides user edit and cancel links
  // so that they take account of our new permissions.
  $data['users']['edit_node']['field']['handler'] = 'administerusersbyrole_handler_field_user_link_edit';
  $data['users']['cancel_node']['field']['handler'] = 'administerusersbyrole_handler_field_user_link_cancel';
}