You are here

function views_perm_views_data in Views Hacks 7

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

Implementation of hook_views_data().

File

views_perm/views_perm.views.inc, line 6

Code

function views_perm_views_data() {
  $data['permission']['table']['join'] = array(
    'users' => array(
      'left_table' => 'users_roles',
      'left_field' => 'rid',
      'field' => 'rid',
    ),
    'users_roles' => array(
      'left_field' => 'rid',
      'field' => 'rid',
    ),
    'roles' => array(
      'left_field' => 'rid',
      'field' => 'rid',
    ),
  );
  return $data;
}