function i18nsync_node_delete_submit in Internationalization 6
Submit callback for
- node delete confirm
- node multiple delete confirm
1 string reference to 'i18nsync_node_delete_submit'
- i18nsync_form_alter in i18nsync/
i18nsync.module - Implementation of hook_form_alter().
File
- i18nsync/
i18nsync.module, line 107 - Internationalization (i18n) package. Synchronization of translations
Code
function i18nsync_node_delete_submit($form, $form_state) {
if ($form_state['values']['confirm']) {
if (!empty($form_state['values']['nid'])) {
// Single node
i18nsync_node_delete_prepare($form_state['values']['nid']);
}
elseif (!empty($form_state['values']['nodes'])) {
// Multiple nodes
foreach ($form_state['values']['nodes'] as $nid => $value) {
i18nsync_node_delete_prepare($nid);
}
}
}
// Then it will go through normal form submission
}