You are here

function entityform_block_update_7100 in Entityform block 7

File

./entityform_block.install, line 12

Code

function entityform_block_update_7100() {
  $entityform_types = entityform_get_types();
  $existing_block_types = variable_get('entityform_block_types');
  foreach ($existing_block_types as $type) {
    if (!array_key_exists($type, $entityform_types)) {
      $key = array_search($type, $existing_block_types);
      unset($existing_block_types[$key]);
    }
  }
  variable_set('entityform_block_types', $existing_block_types);
}