You are here

node_reference.inc in Share Buttons, Related Posts, Content Analytics - Shareaholic 7.2

Same filename and directory in other branches
  1. 7 includes/node_reference.inc

Node Reference module integration.

File

includes/node_reference.inc
View source
<?php

/**
 * @file
 * Node Reference module integration.
 */

/**
 * Implements hook_sexybookmarks_field_formatter_info() on behalf of node_reference.module.
 */
function node_reference_sexybookmarks_field_formatter_info() {
  return array(
    'node_reference' => array(
      'callback' => 'node_reference_sexybookmarks_field_formatter_data',
    ),
  );
}

/**
 * Callback for Link module SexyBookmarks formatter.
 */
function node_reference_sexybookmarks_field_formatter_data($item) {
  $node = node_load($item['nid']);
  return array(
    'url' => url("node/{$node->nid}", array(
      'absolute' => TRUE,
    )),
    'title' => $node->title,
  );
}

Functions

Namesort descending Description
node_reference_sexybookmarks_field_formatter_data Callback for Link module SexyBookmarks formatter.
node_reference_sexybookmarks_field_formatter_info Implements hook_sexybookmarks_field_formatter_info() on behalf of node_reference.module.