You are here

function block_country_custom_block_delete_submit in Block Country 7

Confirm the deletion of the block. Deletes its data from the database.

1 string reference to 'block_country_custom_block_delete_submit'
block_country_form_block_custom_block_delete_alter in ./block_country.module
Implements hook_form_FORM_ID_alter().

File

./block_country.module, line 219
Country_Block - Module for showing the country specific blocks.

Code

function block_country_custom_block_delete_submit(&$form, &$form_state) {

  // Delete country specific values from block once custom block get deleted.
  db_delete('block_country')
    ->condition('module', 'block')
    ->condition('delta', $form_state['values']['bid'])
    ->execute();
}