You are here

function i18nblocks_form_block_box_delete_alter in Internationalization 6

Implementation of hook_form_FORM_ID_alter().

File

i18nblocks/i18nblocks.module, line 96
Internationalization (i18n) submodule: Multilingual meta-blocks

Code

function i18nblocks_form_block_box_delete_alter(&$form, $form_state) {
  $delta = db_result(db_query("SELECT ibid FROM {i18n_blocks} WHERE delta = '%d'", arg(4)));
  $form['delta'] = array(
    '#type' => 'value',
    '#value' => $delta,
  );
  $form['#submit'][] = 'i18nblocks_block_delete_submit';
}