You are here

function potx_select_component_form_validate in Translation template extractor 7.2

Same name and namespace in other branches
  1. 6.3 potx.admin.inc \potx_select_component_form_validate()
  2. 7.3 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.'));
  }
}