function entity_translation_upgrade_validate in Entity Translation 7
Validation handler for the entity_translation_admin_form() form.
1 string reference to 'entity_translation_upgrade_validate'
- entity_translation_upgrade_form_entity_translation_admin_form_alter in entity_translation_upgrade/
entity_translation_upgrade.module - Implements hook_form_FORM_ID_alter().
File
- entity_translation_upgrade/
entity_translation_upgrade.module, line 102 - Provides permanent redirects for unavailable node translations.
Code
function entity_translation_upgrade_validate($form, &$form_state) {
if (!count(array_filter($form_state['values']['types']))) {
form_set_error('types', t('Please specify at least one node type.'));
}
}