You are here

function potx_select_component_form_validate in Translation template extractor 6.3

Same name and namespace in other branches
  1. 7.3 potx.admin.inc \potx_select_component_form_validate()
  2. 7.2 potx.admin.inc \potx_select_component_form_validate()

Validation handler for potx component selection form.

File

./potx.admin.inc, line 54
Administrative interface for the module.

Code

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