You are here

function i18n_block_block_delete_submit in Internationalization 7

Remove strings for deleted custom blocks.

File

i18n_block/i18n_block.module, line 167
Internationalization (i18n) submodule: Multilingual meta-blocks

Code

function i18n_block_block_delete_submit(&$form, $form_state) {
  $delta = $form_state['values']['delta'];

  // Delete stored strings for the title and content fields.
  i18n_string_remove("blocks:block:{$delta}:title");
  i18n_string_remove("blocks:block:{$delta}:body");
}