function node_field_sheet_formatter in Node Field 7.2
Formatter for node field sheet.
Parameters
array $node_field: Node field data.
Return value
string Sheetnode data.
1 string reference to 'node_field_sheet_formatter'
- node_field_sheet_node_field_info_alter in modules/
node_field_sheet/ node_field_sheet.module - Implements hook_node_field_info_alter().
File
- modules/
node_field_sheet/ includes/ node_field_sheet.api.inc, line 44 - Api and helpers functions for node_field_sheet module.
Code
function node_field_sheet_formatter(array $node_field) {
if (empty($node_field['value'])) {
return '';
}
$output = _sheetnode_inject('sheetfield-' . $node_field['nid'], 'sheetnode', $node_field['value'], FALSE, NULL);
return $output;
}