function tmgmt_ui_cart_remove_selected_form_submit in Translation Management Tool 7
Custom form submit callback for tmgmt_ui_cart_cart_form().
Related topics
1 string reference to 'tmgmt_ui_cart_remove_selected_form_submit'
- tmgmt_ui_cart_content in ui/
includes/ tmgmt_ui.pages.inc - Form constructor for cart form.
File
- ui/
includes/ tmgmt_ui.pages.inc, line 943 - Provides page callbacks and form functions for the Translation Management Tool User Interface module.
Code
function tmgmt_ui_cart_remove_selected_form_submit($form, &$form_state) {
$job_item_ids = array_filter($form_state['values']['items']);
tmgmt_ui_cart_get()
->removeJobItems($job_item_ids);
entity_delete_multiple('tmgmt_job_item', $job_item_ids);
drupal_set_message(t('Job items were removed from the cart.'));
}