You are here

function library_get_quantity in Library 6

Same name and namespace in other branches
  1. 6.2 library.module \library_get_quantity()
  2. 7 library.module \library_get_quantity()
1 call to library_get_quantity()
library_get_table_row in ./library.module

File

./library.module, line 1446

Code

function library_get_quantity($node) {
  if ($node->items) {
    return count($node->items);
  }
  else {
    return 0;
  }
}