You are here

function library_get_node_by_item_id in Library 6

Same name and namespace in other branches
  1. 5.2 library.module \library_get_node_by_item_id()
  2. 6.2 library.module \library_get_node_by_item_id()
  3. 7 library.module \library_get_node_by_item_id()

File

./library.module, line 1214

Code

function library_get_node_by_item_id($id) {
  $result = db_result(db_query_range("SELECT nid FROM {library} WHERE id = %d", $id, 0, 1));
  $node = node_load($result);
  return $node;
}