function library_get_item_by_barcode in Library 6
Same name and namespace in other branches
- 6.2 library.module \library_get_item_by_barcode()
- 7 library.module \library_get_item_by_barcode()
1 call to library_get_item_by_barcode()
- library_transaction_form_validate in ./
library.pages.inc - Handles transaction form submissions.
File
- ./
library.module, line 1220
Code
function library_get_item_by_barcode($barcode) {
$result = db_result(db_query_range("SELECT id FROM {library} WHERE barcode = '%s'", $barcode, 0, 1));
$item = library_load($result);
return $item;
}