You are here

function uc_product_type_names in Ubercart 7.3

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

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

1 call to uc_product_type_names()
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 1270
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;
}