function data_node_render_labels in Data 6
Render node-data labels for a given item.
3 calls to data_node_render_labels()
- data_node_add_page in data_node/
data_node.module - Page callback for adding.
- data_node_remove_page in data_node/
data_node.module - Page callback for removing.
- data_node_views_handler_field_node_list::render in data_node/
views/ data_node_views_handler_field_node_list.inc
File
- data_node/
data_node.module, line 404 - Hooks and API functions for Data Node module.
Code
function data_node_render_labels($table, $id) {
$nids = data_node_get_nids($table, $id);
foreach ($nids as $nid) {
$title = _data_node_get_title($nid);
$output .= theme('data_node_label', $table, $id, $nid, $title);
}
$table_name = $table
->get('name');
$class = "data_node_labels-{$table_name}-{$id}";
return "<div class='{$class} clear-block'>{$output}</div>";
}