function library_get_quantity in Library 7
Same name and namespace in other branches
- 6.2 library.module \library_get_quantity()
- 6 library.module \library_get_quantity()
Retrieves the number of items of a node object.
Parameters
object $node: The node to get counts for.
Return value
int Number of library items in a node object.
1 call to library_get_quantity()
- library_get_table_row in ./
library.module - Returns one table for an item table.
File
- ./
library.module, line 1397
Code
function library_get_quantity($node) {
if ($node->library_items) {
return count($node->library_items);
}
else {
return 0;
}
}