You are here

function block_inject_delete_confirm in Block Inject 7

Callback function for confirming the inject region delete.

Parameters

int $region_id: Id of the region to be deleted.

1 string reference to 'block_inject_delete_confirm'
block_inject_menu in ./block_inject.module
Implements hook_menu().

File

./block_inject.admin.inc, line 447
The admin functions for the module.

Code

function block_inject_delete_confirm($form, &$form_state, $region_id) {
  $region = block_inject_get_region_by_id($region_id);

  // Pass the region through the form_state for the submit function.
  $form_state['block_inject_region'] = $region;
  return confirm_form($form, t('Are you sure you want to delete the block inject region %title ?', array(
    '%title' => $region->region,
  )), 'admin/structure/block-inject', 'The blocks that are assigned to this region will be reassigned. This action cannot be undone!', t('Delete'), t('Cancel'));
}