You are here

class linkit_picker_handler_field_node_info in Linkit Picker 6

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

@file

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

Hierarchy

Expanded class hierarchy of linkit_picker_handler_field_node_info

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

File

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

View source
class linkit_picker_handler_field_node_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) {
    $nid = $values->nid;
    $title = $values->node_title;
    $value = $title . ' [path:internal:node/' . $nid . ']';
    return $value;
  }

}

Members