You are here

class linkit_picker_handler_field_user_info in Linkit Picker 6

Same name and namespace in other branches
  1. 7.3 includes/linkit_picker_handler_field_user_info.inc \linkit_picker_handler_field_user_info
  2. 7 includes/linkit_picker_handler_field_user_info.inc \linkit_picker_handler_field_user_info
  3. 7.2 includes/linkit_picker_handler_field_user_info.inc \linkit_picker_handler_field_user_info

@file

Provides a handler that builds the string for user links we what to use with Linkit core.

Hierarchy

Expanded class hierarchy of linkit_picker_handler_field_user_info

1 string reference to 'linkit_picker_handler_field_user_info'
linkit_picker_views_data in includes/linkit_picker.views.inc
Implementation of hook_views_data().

File

includes/linkit_picker_handler_field_user_info.inc, line 9
Provides a handler that builds the string for user links we what to use with Linkit core.

View source
class linkit_picker_handler_field_user_info extends views_handler_field {
  function query() {

    // Do nothing, as this handler does not need to do anything to the query itself.
  }
  function render($values) {
    $uid = $values->uid;
    $users_name = $values->users_name;
    $value = $users_name . ' [path:internal:user/' . $uid . ']';
    return $value;
  }

}

Members