You are here

function realname_views_data_alter in Real Name 6

@file Realname VIEW declarations.

File

./realname.views.inc, line 7
Realname VIEW declarations.

Code

function realname_views_data_alter(&$data) {
  if (variable_get('realname_view', FALSE)) {

    // override username handling in order to use realname theme
    $data['users']['name']['field']['handler'] = 'realname_handler_field_user_name_override';
    $data['users']['uid']['filter']['handler'] = 'realname_handler_filter_user_name';
    $data['users']['uid']['argument']['handler'] = 'realname_handler_argument_user_uid';
  }
}