You are here

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

Same name and namespace in other branches
  1. 6.2 includes/database.inc \merci_has_accessories()
  2. 6 merci.module \merci_has_accessories()

@todo Please document this function.

See also

http://drupal.org/node/1354

File

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

Code

function merci_has_accessories($content_type) {
  if (empty($content_type)) {
    return;
  }
  return db_query("SELECT * FROM {taxonomy_vocabulary_node_type} WHERE type = :type", array(
    ':type' => $content_type,
  ))
    ->fetchObject();
}