Before 2.0 you could get away with having line items with ids that did not match the id defined in hook_line_item. I could have say:
function my_module_line_item() {
$items = array();
$items[] = array (
'id' => 'kit_discounts',
...
}
callback_from_above($op, $order) {
...
drupal_add_js("Drupal.behaviors.ucDiscountMods = function (context) { set_line_item('kit_discounts_1', '". $title ."', ". $value .", $weight); } ", 'inline');
drupal_add_js("Drupal.behaviors.ucDiscountMods = function (context) { set_line_item('kit_discounts_2', '". $title ."', ". $value .", $weight); } ", 'inline');
drupal_add_js("Drupal.behaviors.ucDiscountMods = function (context) { set_line_item('kit_discounts_3', '". $title ."', ". $value .", $weight); } ", 'inline');
...
}
Now you cannot. Each line item must be associated with its own, unique hook_line_item function and their ids must match.
This is what I gather so far, anyhow.
I have a small problem. I have a module that is written pretty thoroughly into the old way. No matter which way I look at it I cannot figure out a way to get around this without a lot of recoding.
Am I fully correct in my understanding here? Is there a way around this? Is this new feature/fix just that or a mistake?
I appreciate any advice.

