There are some problems with menu items using title arguments.
This code is from Commerce:
<?php
$items['admin/commerce/products/add/' . strtr($type, array('_' => '-'))] = array(
'title' => 'Create !name',
'title arguments' => array('!name' => $product_type['name']),
'description' => $product_type['description'],
'page callback' => 'commerce_product_ui_product_form_wrapper',
'page arguments' => array(commerce_product_new($type)),
'access callback' => 'commerce_product_access',
'access arguments' => array('create', commerce_product_new($type)),
'file' => 'includes/commerce_product_ui.products.inc',
);
?>
This results in a situation the attached image describes well.
| Comment | File | Size | Author |
|---|---|---|---|
| coffee-err.png | 23.9 KB | farald |
Comments
Comment #1
michaelmol commentedComment #2
michaelmol commentedComment #3
michaelmol commentedThis is resolved in Coffee 7.x-2.x