function merci_nodes_for_type_count in MERCI (Manage Equipment Reservations, Checkout and Inventory) 6.2
Same name and namespace in other branches
- 7.2 includes/database.inc \merci_nodes_for_type_count()
1 call to merci_nodes_for_type_count()
- merci_form_alter in ./
merci.module - Implementation of hook_form_alter().
File
- includes/
database.inc, line 73 - MERCI - Managed Equipment Reservation Checkout and Inventory
Code
function merci_nodes_for_type_count($type) {
return db_result(db_query("SELECT COUNT(nid) FROM {node} WHERE type = '%s'", $type));
}