You are here

function views_perm_views_data_alter in Views Hacks 7

Same name and namespace in other branches
  1. 6 views_perm/views_perm.views.inc \views_perm_views_data_alter()

Implementation of hook_views_data_alter().

File

views_perm/views_perm.views.inc, line 29

Code

function views_perm_views_data_alter(&$data) {
  $data['users_roles']['pid'] = array(
    'title' => t('Permissions'),
    'help' => t('Permissions granted to a user.'),
    'field' => array(
      'handler' => 'views_handler_field_user_permissions',
      'table' => 'permission',
    ),
    'filter' => array(
      'handler' => 'views_handler_filter_user_permissions',
    ),
    'argument' => array(
      'handler' => 'views_handler_argument_user_permissions',
    ),
  );
}