You are here

function potx_select_form_validate in Translation template extractor 6.2

Same name and namespace in other branches
  1. 5.2 potx.module \potx_select_form_validate()
  2. 5 potx.module \potx_select_form_validate()
  3. 6 potx.module \potx_select_form_validate()
  4. 7 potx.module \potx_select_form_validate()

Validation handler for potx component selection form.

File

./potx.module, line 84
Gettext translation template and translation extractor.

Code

function potx_select_form_validate($form, &$form_state) {
  if (empty($form_state['values']['component'])) {
    form_set_error('', t('You should select a component to export.'));
  }
}