You are here

linkit_picker_handler_field_node_info.inc in Linkit Picker 7.3

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

File

includes/linkit_picker_handler_field_node_info.inc
View source
<?php

/**
 * @file
 *
 * Provides a handler that builds the string for node links we what to use with Linkit core.
 */
class linkit_picker_handler_field_node_info extends views_handler_field {
  function query() {
    _linkit_picker_set_active_profile();
  }
  function render($values) {
    $value = array(
      'path' => _linkit_picker_get_insert_plugin_processed_path('node/' . $values->nid),
      'title' => $values->node_title,
    );
    return drupal_json_encode($value);
  }

}

Classes