You are here

function tmgmt_ui_cart_source_overview_validate in Translation Management Tool 7

Cart form validation callback for the source overview.

Related topics

2 string references to 'tmgmt_ui_cart_source_overview_validate'
tmgmt_ui_add_cart_form in ui/tmgmt_ui.module
Adds add to cart form elements.
tmgmt_ui_cart_content in ui/includes/tmgmt_ui.pages.inc
Form constructor for cart form.

File

ui/tmgmt_ui.module, line 410
Common Translation managment UI.

Code

function tmgmt_ui_cart_source_overview_validate($form, &$form_state) {
  $items = array_filter($form_state['values']['items']);
  if (empty($items)) {
    form_set_error('items', t('No job items were selected.'));
  }
}