You are here

function uc_product_type_names in Ubercart 6.2

Same name and namespace in other branches
  1. 7.3 uc_product/uc_product.module \uc_product_type_names()

Returns an associative array of product node type names keyed by ID.

2 calls to uc_product_type_names()
uc_cart_condition_product_class_form in uc_cart/uc_cart.ca.inc
uc_taxes_form in uc_taxes/uc_taxes.admin.inc
Builds a form to add or edit a tax rate.

File

uc_product/uc_product.module, line 1618
The product module for Ubercart.

Code

function uc_product_type_names() {
  $names = array();

  // Get all the node meta data.
  $node_info = module_invoke_all('node_info');

  // Loop through each product node type.
  foreach (uc_product_types() as $type) {
    $names[$type] = $node_info[$type]['name'];
  }
  return $names;
}