function entity_translation_entity_form_submit in Entity Translation 7
Submit handler for the entity deletion.
1 string reference to 'entity_translation_entity_form_submit'
File
- ./
entity_translation.module, line 1597
Code
function entity_translation_entity_form_submit($form, &$form_state) {
if ($form_state['clicked_button']['#value'] == t('Delete')) {
$handler = entity_translation_entity_form_get_handler($form, $form_state);
if (count($handler
->getTranslations()->data) > 1) {
$info = entity_get_info($form['#entity_type']);
drupal_set_message(t('This will delete all the @entity_type translations.', array(
'@entity_type' => drupal_strtolower($info['label']),
)), 'warning');
}
}
}