function node_reference_sexybookmarks_field_formatter_data in Share Buttons, Related Posts, Content Analytics - Shareaholic 7.2
Same name and namespace in other branches
- 7 includes/node_reference.inc \node_reference_sexybookmarks_field_formatter_data()
Callback for Link module SexyBookmarks formatter.
1 string reference to 'node_reference_sexybookmarks_field_formatter_data'
- node_reference_sexybookmarks_field_formatter_info in includes/
node_reference.inc - Implements hook_sexybookmarks_field_formatter_info() on behalf of node_reference.module.
File
- includes/
node_reference.inc, line 21 - Node Reference module integration.
Code
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,
);
}