function i18nblocks_block_delete_submit in Internationalization 6
Remove strings for deleted custom blocks.
1 string reference to 'i18nblocks_block_delete_submit'
- i18nblocks_form_block_box_delete_alter in i18nblocks/
i18nblocks.module - Implementation of hook_form_FORM_ID_alter().
File
- i18nblocks/
i18nblocks.module, line 108 - Internationalization (i18n) submodule: Multilingual meta-blocks
Code
function i18nblocks_block_delete_submit(&$form, $form_state) {
$delta = $form_state['values']['delta'];
// Delete stored strings for the title and content fields.
i18nstrings_remove_string("blocks:block:{$delta}:title");
i18nstrings_remove_string("blocks:block:{$delta}:body");
}