function data_node_get_nids in Data 6
Get the nids for a given record.
3 calls to data_node_get_nids()
- data_node_active_page in data_node/
data_node.module - Page callback for setting the active node.
- data_node_render_labels in data_node/
data_node.module - Render node-data labels for a given item.
- data_node_views_handler_field_add_remove::render in data_node/
views/ data_node_views_handler_field_add_remove.inc
File
- data_node/
data_node.module, line 320 - Hooks and API functions for Data Node module.
Code
function data_node_get_nids($table, $id) {
$list = array();
$result = db_query("SELECT nid FROM {data_table_node} WHERE data_table_name = '%s' AND id = %d", $table
->get('name'), $id);
while ($row = db_fetch_object($result)) {
$list[] = $row->nid;
}
return $list;
}