You are here

function rolereference_views_data in Role Reference 6

File

views/rolereference.views.inc, line 4

Code

function rolereference_views_data() {
  $data['role']['table']['group'] = t('Role');
  $data['role']['table']['base'] = array(
    'field' => 'rid',
    'title' => t('Role Id'),
  );
  $data['role']['role_current'] = array(
    'real field' => 'rid',
    'title' => t('Current Roles'),
    'help' => t("Filter the view to the currently logged in user's roles."),
    'filter' => array(
      'handler' => 'views_handler_filter_user_roles_current',
      'type' => 'yes-no',
    ),
  );
  return $data;
}