You are here

function tmgmt_test_add_to_cart in Translation Management Tool 7

Callback to add given job item into the cart.

1 string reference to 'tmgmt_test_add_to_cart'
tmgmt_test_menu in tests/tmgmt_test.module
Implements hook_menu().

File

tests/tmgmt_test.module, line 91
Module file of the translation management test module.

Code

function tmgmt_test_add_to_cart(TMGMTJobITem $job_item) {
  tmgmt_ui_cart_get()
    ->addExistingJobItems(array(
    $job_item,
  ));
}