You are here

function merci_nodes_for_type_count in MERCI (Manage Equipment Reservations, Checkout and Inventory) 7.2

Same name and namespace in other branches
  1. 6.2 includes/database.inc \merci_nodes_for_type_count()

@todo Please document this function.

See also

http://drupal.org/node/1354

1 call to merci_nodes_for_type_count()
merci_form_alter in ./merci.module
Implementation of hook_form_alter().

File

includes/database.inc, line 79
MERCI - Managed Equipment Reservation Checkout and Inventory

Code

function merci_nodes_for_type_count($type) {
  return db_query("SELECT COUNT(nid) FROM {node} WHERE type = :type", array(
    ':type' => $type,
  ))
    ->fetchField();
}