function merci_by_vid in MERCI (Manage Equipment Reservations, Checkout and Inventory) 6
Same name and namespace in other branches
- 6.2 includes/api.inc \merci_by_vid()
- 7.2 includes/api.inc \merci_by_vid()
Sort by vid
Parameters
$a: The first object.
$b: The second object
Return value
0,1, or -1 indicating which object has a higher VID
1 string reference to 'merci_by_vid'
- merci_taxonomy_json in ./
merci.module - Get taxonomy data as JSON for a node
File
- ./
merci.module, line 2804 - MERCI - Managed Equipment Reservation Checkout and Inventory
Code
function merci_by_vid() {
if ($a->vid == $b->vid) {
return 0;
}
return $a->vid > $b->vid ? -1 : 1;
}