node_reference.inc in Share Buttons, Related Posts, Content Analytics - Shareaholic 7
Same filename and directory in other branches
Node Reference module integration.
File
includes/node_reference.incView 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
Name | 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. |