You are here

function commerce_product_ui_admin_menu_map in Commerce Core 7

Implements hook_admin_menu_map().

File

modules/product/commerce_product_ui.module, line 200

Code

function commerce_product_ui_admin_menu_map() {

  // Add awareness to the administration menu of the various product types so
  // they are included in the dropdown menu.
  $type_args = array();
  foreach (array_keys(commerce_product_types()) as $type) {
    $type_args[] = strtr($type, '_', '-');
  }
  $map['admin/commerce/products/types/%'] = array(
    'parent' => 'admin/commerce/products/types',
    'arguments' => array(
      array(
        '%' => $type_args,
      ),
    ),
  );
  return $map;
}